PhilGineo

COBOL compiler options

Discussion created by PhilGineo Champion on May 9, 2018
Latest reply on Mar 14, 2019 by PhilGineo

looks like a cool option instead of putting COBOL compiler options on the PARM statement.  This works for COBOL 6.1, you'd have to test it for the version of COBOL you're on.  

 

//COMPILE EXEC PGM=***,PARM='OPTFILE'                    

//STEPLIB  DD ...                  

//SYSLIB   DD ...                               

//SYSIN    DD ...      

//SYSOPTF  DD *                                                        

 MAP,LIST,XREF,ARCH(11),SSRANGE,OPT(0),RENT,DATA(31),RMODE(ANY)        

  

SYSOPTF CAN BE A FILE – THERE ARE NO CHARACTER LIMITS WITH SYSOPTF

Outcomes