IZEA

Showing posts with label Cobol Compilation. Show all posts
Showing posts with label Cobol Compilation. Show all posts

Friday, April 19, 2013

How to Compile Cobol Program in Windows

The steps for compiling COBOL locally are:
  • Install Microfocus NetExpress
  • Set PS_HOME and COBROOT
  • Navigate to PS_HOME/Setup in cmd prompt and execute below command.

CBLBLD CompileDrive \CompileDirectory

Eg: CBLBLD C:  \TEMP\COMPILE



The above screenshot shows the real time example of COBOL Compilation.

During the compilation process the following actions occur;

Source files   will be copied
                  From PS_HOME\src\cbl (D:\PTHCM91\src\cbl)
                  To    Compile Drive\Compile Directory

Compiled modules will be copied
                  From Compile Drive\Compile Directory
                  To   PS_HOME\CBLBINDR (D:\PTHCM91\CBLBINA, CBLBINA or CBLBINU)


CBLBINA, CBLBINE or CBLBINU is based on the compilation mode of ASCII (unicode), EBCDIC or Unicode respectively. 
 
COBOL Process Test: 

Once compilation is done, run the COBOL test process.

 PeopleTools ---> Process Scheduler ---> System Process Requests


Remote Call test:

Sometimes AE process calls COBOL files remotely to execute as a part of workflow. To ensure its proper function, Remote call test should result in below message (screenshot).
.
 PeopleTools ---> Utilities ---> Debug ---> People Tools Test Utilities