Define a data set that contains the compiler options for your COBOL program by coding the SYSOPTF DD statement as shown below.
//SYSOPTF DD DSNAME=dsname,UNIT=SYSDA,VOLUME=(subparms),DISP=SHR
To use a compiler-option data set, specify OPTFILE either as a compiler invocation option or in a PROCESS or CBL statement in your source program.
You can optionally place the compiler options directly in the input stream after the SYSOPTF DD statement if you compile using the OPTFILE option:
//COB EXEC PGM=IGYCRCTL,PARM='OPTFILE' //SYSOPTF DD DATA,DLM=@@ SSRANGE ARITH(COMPAT) OPTIMIZE . . . @@ //SYSIN DD . . .
You can concatenate multiple SYSOPTF DD statements if you have multiple compiler-option data sets:
//SYSOPTF DD DSNAME=dsname1, . . . // DD DSNAME=dsname2, . . .
Compiler options that are in later data sets in the concatenation take precedence over options in earlier data sets in the concatenation.
related references
Logical record length and block size
OPTFILE