The z/OS UNIX family of compilers uses a number of common conventional flags. Each language has its own set of additional flags.
Some flag options have arguments that form part of the flag, for example:
pli samp.pli -I/home/test3/include
In this case, /home/test3/include is an include directory to be searched for INCLUDE files.
Each flag option should be specified as a separate argument.
| Option | Description |
|---|---|
| -c | Compile only. |
| -e | Create names and entries for a fetchable load module. |
| -I<dir>* | Add path <dir> to the directories to be searched for INCLUDE files. -I must be followed by a path and only a single path is allowed per -I option. To add multiple paths, use multiple -I options. There shouldn't be any spaces between -I and the path name. |
| -O, -O2 | Optimize generated code. This option is equivalent to -qOPT=2. |
| -q<option>* | Pass it to the compiler. <option> is a compile-time option. Each option should be delimited by a comma and each suboption should be delimited by an equal sign or colon. There shouldn't be any spaces between -q and <option>. |
| -v | Display compile and link steps and execute them. |
| -# | Display compile and link steps, but do not execute them. |
|
Note:
*You
must specify an argument where indicated; otherwise, the results
are unpredictable. |
|