Class Notes
and
Example Source Code

Stern and Stern
Power Point

CIS126 Home

Content Outline

Course Description

Evaluation
Criteria

Project 1

Project 2

Project 3

Project 4

Instructions for MicroMedia Cobol Compiler

1.      Open Personal Cobol from the start up menu.

2.      You have the choice of :

a.       Opening a Cobol Program for Edit (For Edit you can compile the program, but you can not execute it. You must first Exit the program and Reopen the same program “for Compile”.

b.      Open a Cobol Program “for Compile” (In this you can edit, compile and execute the program.)

c.       Or you can create a New Cobol Program.

3.      Write your program or edit any program as you would with any word processor. The Microfocus Animator has an Area ‘A’ Default. When typing your program your margins will begin at column 8 unless otherwise specified by the user.

4.      When you are satisfied with your program you can click on the check icon or you can go through the MENU BAR-COMPILE/RUN; COMPILE PROGRAM to compile your program. The compiling of the program will create several other files on your disk. A BAK, CBL, CSI, IDY, INT Files will all be created as part of the original file. When you execute a program you will be using the file with the INT extension. For example if your file name is EXAMPLE.CBL your execute file will be EXAMPLE.INT.

5.      To save a Cobol Program you may click on the disk icon or you can save through FILE; SAVE or SAVE AS. The Default extension is CBL. It is recommended that you save your file before you compile it for file safety reasons.

6.      After you compile your program and you correct all your syntax errors. You may want to run your program.

a.       To run your program, first close your program.

b.      Then open the same program “Open for execution…”

c.       Click the running man icon or MENU BAR-COMPILE/RUN; RUN

d.      Watch the program work or crash your computer.

e.       When program ends you will get a message that reads Stop-run encountered. Click Okay to continue.

7.      To debug your program you may want to run the application line by line. This is done as follows.

a.       Click the foot print icon to execute just one line. (If by clicking the foot print icon seem not to get you anywhere. You must restart the Application, MENU BAR-COMPILE/RUN; RESTART APPLICATION.)

Click the foot print icon again to continue until you find your bug or you are satisfied with your program.