Read an Input File with COBOL

ofrecido por
Coursera Project Network
En este proyecto guiado, tú:

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
BeginnerPrincipiante
CloudNo se necesita descarga
VideoVideo de pantalla dividida
Comment DotsInglés (English)
LaptopSolo escritorio

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.

Habilidades que desarrollarás

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

Aprende paso a paso

En un video que se reproduce en una pantalla dividida con tu área de trabajo, tu instructor te guiará en cada paso:

  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.

Cómo funcionan los proyectos guiados

Tu espacio de trabajo es un escritorio virtual directamente en tu navegador, no requiere descarga.

En un video de pantalla dividida, tu instructor te guía paso a paso

Preguntas Frecuentes

Preguntas Frecuentes

¿Tienes más preguntas? Visita el Centro de Ayuda al Alumno.