Compile and Execute
Let's call the file containing our COBOL Example 2 program:
calcpay.cbl
The COBOL compiler is called ccbl.
1. To compile the program: Type, from the UNIX prompt:
ccbl calcpay.cbl
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 2 program, reading
the data from the file: calcpay.in, and producing the output
in the file: calcpay.out
3. Display the output file:
Use an editor (PICO or VI) to display the output file:
calcpay.out