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英語(English)
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.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心