Compile Source Code

Compile Settings

  1. Before compiling the programs, change compiler settings as follows:
    • Click right mouse button on the ‘BankDemo Lab Project’
    • Select ‘Properties’ (bottom of the drop down)

Select Project Properties

  1. Navigate to Micro Focus -> Project Settings -> COBOL

COBOL Project Properties

  1. Add following additional directives by clicking on the 3 dots under, ‘additional directives’. Click Apply.

     APOST  CHANGEMESSAGE(10 W 1082 W)  NOREENTRANT  NOTRUNCCALLNAME  NOTRUNCCOPY  NOMAPNAME  NOFLAG  FLAGAS(E)  WARNING(1)  DEFAULTBYTE(00)  NOHOSTFD
    

Additional COBOL Directives

  1. Navigate to Micro Focus -> Project Settings -> COBOL -> CICS Preprocessor
    • Enable ‘Use CICS Preprocessor’ option
    • Click Apply

CICS Properties

  1. Navigate to Micro Focus -> Build Path
    • Toggle to ‘Dependency Paths’ tab
    • Check ‘Bankdemo Lab Project/CPYBKS’ option
    • Click Apply and Close

Build Path

  1. So far, we have enabled CICS preprocessor option for all the COBOL programs. However, some of the programs in the overall inventory are batch components. Hence, we need to disable for them.
    • Under ‘Bankdemo Lab Project’, expand ‘COBOL Programs’, then ‘COBOL’.
    • Select DBANK51P.cbl, DBANK52P.cbl, UDATECNV.cbl, ZBNKEXT1.cbl and ZBNKPRT1.cbl programs.
    • Click right mouse button and select Properties.

Use Ctrl key and left mouse button to select the components.

Select Programs

  1. Under ‘COBOL’, Select ‘CICS Preprocessor’.
    • Check ‘Enable file specific settings’.
    • Un-check ‘Use CICS Preprocessor’.
    • Click Apply and Close

Update CICS Preprocessor Option

Compilation

  1. Compile the BMS maps by expanding BankDemo Lab Project -> BMS Source Files -> BMS.
    • Select all the components.

Use shift key and mouse to select all the components.

  • Click right mouse button on the BMS files and select ‘Compile’. All maps should be compiled successfully.

BMS Compile

  1. Now, compile the programs by expanding BankDemo Lab Project -> COBOL Programs -> COBOL.
    • Select all the components.
  • Click right mouse button on the programs and select ‘Compile’. All programs should be compiled successfully.

COBOL Compile

  1. All the compiled objects should be available at C:\ED-LAB\Bankdemo Lab Project\New_Configuration.bin folder

Compiled Artifacts

Ensure, total no of objects were 200. If number is matching, then your compilation was successful. Else, please reach out to AWS Associate.