Specifying source files
For non-z/OS® UNIX files, use this format
of the SYSIN DD statement:
//SYSIN DD DSNAME=dsname,DISP=SHR
If
you specify a PDS without a member name, all members of that PDS are
compiled.Note: If you specify a PDS as your primary input, you must specify
either a PDS or a z/OS UNIX directory for your output
files.
For z/OS UNIX files, use this format of the SYSIN
DD statement:
//SYSIN DD PATH='pathname'
You
can specify compilation for a single file or all source files in a z/OS UNIX directory,
for example: //SYSIN DD PATH='/u/david'
//* All files in the directory /u/david are compiled
Note: If you specify a z/OS UNIX directory as your primary
input, you must specify a z/OS UNIX directory for your output
files.
When you place your source code directly in the input stream, use
the following form of the SYSIN DD statement:
//SYSIN DD DATA,DLM=
rather than: //SYSIN DD *
When you use the DD * convention, the first XL C/C++ comment statement that starts in column 1 will terminate the input to the compiler. This is because /*, the beginning of a C or C++ comment, is also the default delimiter.
Note: To treat columns 73 through 80 as sequence numbers, use the
SEQUENCE compiler option.
For more information about the DD * convention, refer to the publications that are listed in z/OS V2R2 Information Roadmap.