Read an Input File with COBOL

提供:
Coursera Project Network
このガイド付きプロジェクトでは、次のことを行います。

Describe the function of File section in the Data Division in a COBOL program.

Write the COBOL code that reads an input file and writes an output file.

Demonstrate the process of compiling and running a COBOL program in OpenCobolIDE.

Clock1.5 hours
Beginner初級
Cloudダウンロード不要
Video分割画面ビデオ
Comment Dots英語
Laptopデスクトップのみ

In this project you will use COBOL code to read the data records from a sequential file. You will code, compile, and run programs using the PC-based COBOL IDE called OpenCobolIDE. Since COBOL is often used with large amounts of data, the ability to process files—to read the records in them as input and write the records as output—is a critical skill for any COBOL programmer.

あなたが開発するスキル

  • OpenCobolIDE
  • Common Business Oriented Language (COBOL)
  • COBOL FD
  • File Processing
  • COBOL Programming

ステップバイステップで学習します

ワークエリアを使用した分割画面で再生するビデオでは、講師がこれらの手順を説明します。

  1. Examine a sample sequential file as you observe how it is used to organize data and learn the associated terminology.

  2. Code the COBOL FD statement in the File section of the Data Division to describe the fields that make up a record within a sequential file used as input.

  3. Add, compile, and run the code in a COBOL program’s Procedure Division to read through the records in a sequential input file and then display the fields from each record on the screen.

  4. Define the layout of an output file in a COBOL program Data Division’s File section by describing the fields and data types that make up each record.

  5. Add, compile, and run COBOL code that moves data from the input record to the output record and generates a sequential file as output.

ガイド付きプロジェクトの仕組み

ワークスペースは、ブラウザに完全にロードされたクラウドデスクトップですので、ダウンロードは不要です

分割画面のビデオで、講師が手順ごとにガイドします

よくある質問

よくある質問

さらに質問がある場合は、受講者ヘルプセンターにアクセスしてください。