downloading a cobol program from cis12 site! please use speaker notes for additional information!
TRANSCRIPT
xsample1.html This is the program to view and download following the download instructions.sample1.cbl This is the program in .cbl formatc12first.dat This is the data file for sample1 and sample2.
Sample1 - xsample1.htmlSample1 - xsample1.html
If you click on xsample1.html, this is what you will see.
Sample1 - sample1.cblSample1 - sample1.cbl
This is sample1.cbl. Note that there is no visible line structure.
File optionsFile optionsFile/Close will close the source code after the compile.
File/Open for execution will open the executable object code so the program can be run.
Note that I changed to output from PRINTER to “A:\SAMPOUT.DAT so that I could capture the output on floppy disk to bring to this slide show. I did this prior to the compile so that the change would be reflected in the object code.
Object codeObject code
When you open for execution, the object code programs which have a .int extension appear.
Execution...Execution...Xsample1.int is now open for execution and the cursor is positioned at the first executable instruction in the procedure division.
To execute the program, the programmer goes to Compile/Run and selects Run. At that point the program will be executed.
The STOP RUN message above indicates successful completion.