I have two pgms PGM1(Cobol-DB2) & PGM2(Cobol). PGM1 calls PGM2 by passing a variable as defined below:
01 WS-VAR PIC X(80).
MOVE ZEROES TO WS-VAR
CALL "PGM2" USING WS-VAR.
01 WS-VAR PIC X(80)
PROCEDURE DIVISION USING WS-VAR.
MOVE 'IBM MAINFRAME' TO WS-VAR
Both the codes compile successfully, but while executing the code the job abends - ABENDU4095. The reason in sysout is - "The module PGM2 was not found."
I have searched net for reasons for this problem, but everything looks fine. Also, when i called another program from PGM1, job executed fine. help required.