You can use a shell script
to automate cob2, cob2_j, or cob2_r commands.
To prevent invalid syntax from being
passed to the command, however, follow these guidelines:
- Use an equal sign and colon rather than parentheses to delimit compiler suboptions.
- Use underscores rather than single quotation marks to delimit compiler suboptions.
- Do not use any blanks in the option string unless you enclose
the string in quotation marks ("").
Table 1. Examples of compiler-option syntax in a shell script| Use in shell script |
Use on command line |
| -qFLOAT=NATIVE:,CHAR=NATIVE: |
-qFLOAT(NATIVE),CHAR(NATIVE) |
| -qEXIT=INEXIT=_String_,MYMODULE:: |
-qEXIT(INEXIT('String',MYMODULE)) |