Compiling using shell scripts

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:

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))