In the workstation-attached environment, PP2 operates on UNIX and Windows systems. PP2 operation in these environments is described in the sections that follow.
PP2 supports both 32-bit and 64-bit platforms on AIX, Linux and Windows.
On workstation-attached Unix platforms a C/Cobol 64 bit pre-processor executable name will have a suffix "64". For example: 64 bit "ppcmain" will be "ppcmain64", and 64 bit "ppbmain" will be "ppbmain64".
UNIX OS
Use standard commands to invoke the process when running PP2 in a UNIX system environment.
The next example shows an invocation for the C preprocessor. Line numbers relate to the notes following the code and are not part of the syntax.
1 ppcmain option option \ 2 -Include (infile) (outfile)
Consider the following points.
- Separate the options with a space.
- (infile) designates the preprocessor source input filename.
(outfile) designates the precompiler output.
Windows
Use standard commands to invoke the process when running PP2 in an Windows environment.
The next example shows an invocation for the C preprocessor. Line numbers relate to the notes following the code and are not part of the syntax.
1 ppcmain option option 2 /I<dir> <infile> <outfile>
Consider the following points.
- Separate the preprocessor options with blanks.
- Use /I to indicate the search path for embedded SQL INCLUDE text name statements; <infile> is a designator for the preprocessor source input filename.
Specify <infile> by using the INPUT preprocessor option, -i filespec, or by the indirection operator <; <outfile> is a designator for the precompiler output.
Specify <outfile> by using the PUNCH preprocessor option, -o filespec, or by the indirection operator >.
- Surround each option by quotes (") when using the standard option syntax.