I know it's been a while since I've been here. I got called away and just a few days ago got back into this project. Today, I got the cobol COPY statement to work. Here are my "lessons-learned":
20241128
Copybooks
- cobc -fixed -v -x -static -I%apphome%\cobcpy -L%apphome%\GNUCobol\lib -o %apphome%\pgmexe%1.exe %apphome%\source%1.cob >>%LOG% 2>&1
---MUST have inlude directory -I%apphome%\cobcpy AFTER -static
- COPY must begin in col 12
- No Quotes
- No extension. Will find .cbl, .cob, .cpy
- Case does not matter
- Copy XXXXXX. Must end with period!
If inside a statement like: IF 1=1 copy xxxx. END-IF. (remember col 12!)
Copy statement end period will not terminate the outer statement!