79235408

Date: 2024-11-28 22:17:32
Score: 2.5
Natty:
Report link

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

  1. 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
  2. COPY must begin in col 12
  3. No Quotes
  4. No extension. Will find .cbl, .cob, .cpy
  5. Case does not matter
  6. 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!
Reasons:
  • Blacklisted phrase (1): I know it's been
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: A David Wulkan