aws-samples / aws-mainframe-modernization-carddemo

Apache License 2.0
70 stars 44 forks source link

DFHAID: No such file or directory #18

Open sundar-sarvam opened 1 year ago

sundar-sarvam commented 1 year ago

I get the following errors when trying to compile the card demo app with GnuCOBOL. DFHAID, DFHBMSCA are IBM provided copybooks right? Where do we get it?

COSGN00C.cbl:57: error: DFHAID: No such file or directory 55 | COPY CSUSR01Y. 56 | 57 > COPY DFHAID. 58 | COPY DFHBMSCA. 59 | COPY DFHATTR. COSGN00C.cbl:58: error: DFHBMSCA: No such file or directory 56 | 57 | COPY DFHAID. 58 > COPY DFHBMSCA. 59 | COPY DFHATTR. 60 | COSGN00C.cbl:67: error: 'EIBCALEN' is not defined 65 | 01 DFHCOMMAREA. 66 | 05 LK-COMMAREA PIC X(01) 67 > OCCURS 1 TO 32767 TIMES DEPENDING ON EIBCALEN. 68 | 69 | ---------------------------------------------------------------- COSGN00C.cbl: in paragraph 'MAIN-PARA': COSGN00C.cbl:85: error: 'EIBAID' is not defined 83 | PERFORM SEND-SIGNON-SCREEN 84 | ELSE 85 > EVALUATE EIBAID 86 | WHEN DFHENTER 87 | PERFORM PROCESS-ENTER-KEY COSGN00C.cbl:86: error: 'DFHENTER' is not defined 84 | ELSE 85 | EVALUATE EIBAID 86 > WHEN DFHENTER 87 | PERFORM PROCESS-ENTER-KEY 88 | WHEN DFHPF3 COSGN00C.cbl:88: error: 'DFHPF3' is not defined 86 | WHEN DFHENTER 87 | PERFORM PROCESS-ENTER-KEY 88 > WHEN DFHPF3 89 | MOVE CCDA-MSG-THANK-YOU TO WS-MESSAGE 90 | PERFORM SEND-PLAIN-TEXT COSGN00C.cbl:98: error: syntax error, unexpected Identifier, expecting SECTION or . 96 | END-IF. 97 | 98 > EXEC CICS RETURN 99 | TRANSID (WS-TRANID) 100 | COMMAREA (CARDDEMO-COMMAREA) COSGN00C.cbl:98: note: unknown statement 'EXEC'

saiprp commented 1 year ago

@sundar-sarvam

You can check in the existing Mainframe ENV.

Alternatively, Pasting some reference links here for you.

https://www.tutorialspoint.com/cics/cics_aid_keys.htm https://www.ibmmainframeforum.com/cics/topic11955-10.html