Compiling using scripts
If you use a shell script to automate cob2
tasks,
you must code option syntax carefully to prevent the shell from passing
invalid strings to cob2
.
Code option strings in scripts as follows:
- Use an equal sign and colon rather than a left and right parenthesis, respectively, to specify compiler suboptions. For example, code -qOPTIMIZE=1:,XREF instead of -qOPTIMIZE(1),XREF.
- Use an underscore rather than an apostrophe where a compiler option requires apostrophes for delimiting a suboption.
- Do not use blanks in the option string.