Compile and Execute
Let's call the file containing our COBOL Example 1 program:
The COBOL compiler is called ccbl.
1. To compile the program: Type, from the UNIX prompt:
NOTE: As a result of the compilation, a code file, called:
cbl.out, will be created.
2. To execute the program: Type, from the UNIX prompt: runcbl
NOTE: The runcbl command will use and 'interprete' the code
file, cbl.out, to execute the Example 1 program, reading
the data from the file: payroll.in, and producing the output
in the file: payroll.out
3. Display the output file:
Use an editor (PICO or VI) to display the output file: