klophockey
Programmer
I am trying to compile an ACUCOBOL program which has copybooks instead of hard coding the information for File-Control, File Section and Working Storage.
It seems that the syntax I have coded in the program is wrong. However, I look at documentation that says I have coded it right.
I could use some input from some experts on how I should code a copybook to where the compiler will accept the syntax.
Below is an example of how I have things coded.
PROGRAM-ID. MYPGM.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
copy "SELECTS.sl".
DATA DIVISION.
FILE SECTION.
copy "FILEDESC.fd".
WORKING-STORAGE SECTION.
copy "WRKSTG.wrk".
PROCEDURE DIVISION.
MAIN.
DISPLAY 'Begin MYPGM Cobol Program'.
DISPLAY 'End CTUTIL2 Cobol Program'.
Goback.
It seems that the syntax I have coded in the program is wrong. However, I look at documentation that says I have coded it right.
I could use some input from some experts on how I should code a copybook to where the compiler will accept the syntax.
Below is an example of how I have things coded.
PROGRAM-ID. MYPGM.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
copy "SELECTS.sl".
DATA DIVISION.
FILE SECTION.
copy "FILEDESC.fd".
WORKING-STORAGE SECTION.
copy "WRKSTG.wrk".
PROCEDURE DIVISION.
MAIN.
DISPLAY 'Begin MYPGM Cobol Program'.
DISPLAY 'End CTUTIL2 Cobol Program'.
Goback.