Monday, 28 July 2014

COBOL Program Compilation Process | COBOL Compilation Process

COBOL Program Compilation Process.

COBOL compilation is an important process of converting high-level program code to low-level machine language that machines can understand. It is one of the most important phases of the programming development life cycle.

Basically, COBOL compilation is a three-step process, i.e. convert source code to object module, link edit COBOL program with any subprogram, last but not least create executable object module. Refer below the figure for more details:

Compilation Flow diagram.


COBOL
COBOL Program Compilation Process.

Step 1  
  • The COBOL compiler compiles the source program into an object module. If necessary, it gets the copy members it needs for the compilation from the specified copy libraries.
  •  During compilation, the compiler produces output that can be printed or displayed on the terminal or monitor.
Step 2 
  • The linkage editor links the object program with any subprograms it needs, thus creating an executable program called a load module.
  • On most systems, the linkage editor links the object program with one or more system subprograms. However, it can also link it with COBOL subprograms.
Step 3 
  • The executable program runs so you can see whether it works correctly. This is the testing phase of program development. 
Note : COBOL-DB2 and COBOL-CICS compilation process is little different from native cobol program compilation. 


COBOL


Created with Artisteer

No comments:

Post a Comment