Presentation is loading. Please wait.

Presentation is loading. Please wait.

Downloading a COBOL program from CIS12 site! Please use speaker notes for additional information!

Similar presentations


Presentation on theme: "Downloading a COBOL program from CIS12 site! Please use speaker notes for additional information!"— Presentation transcript:

1 Downloading a COBOL program from CIS12 site! Please use speaker notes for additional information!

2 xsample1.html This is the program to view and download following the download instructions. sample1.cbl This is the program in.cbl format c12first.dat This is the data file for sample1 and sample2. Sample1 - xsample1.html If you click on xsample1.html, this is what you will see.

3 Sample1 - sample1.cbl This is sample1.cbl. Note that there is no visible line structure.

4 Save as... xsample1.html

5 Save as...

6 Open xsample1.html in notepad

7 xsample1.html Eliminate the html and then same as xsample1.cbl

8 xsample1.cbl

9 MicroFocus COBOL File Open for edit results in the Open screen shown

10 Open in editor

11 In editor

12 After compile

13 Successful compile

14 File options File/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.

15 Object code When you open for execution, the object code programs which have a.int extension appear.

16 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.

17 Output Output from xsample1.int. The file is called sampout.dat.

18 Downloading data file

19 Sample1.cbl Program still runs with the music notes at the end of the line.

20 Sample1.cbl Here I changed from PRINTER to OUT2.DAT. Notice that I deleted the music note when I changed the line. Note that the STOP RUN message also appears here after successful execution.


Download ppt "Downloading a COBOL program from CIS12 site! Please use speaker notes for additional information!"

Similar presentations


Ads by Google