15.10 - Network-Attached Environments - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

prodname
Preprocessor2 for Embedded SQL
vrm_release
15.10
category
Programming Reference
featnum
B035-2446-035K

In the network‑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, HP‑UX, Linux, Solaris, and Windows.

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

Note:  

1 )
Separate the options with a space.
2 )
(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>

1 Separate the preprocessor options with blanks.

2 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 >.

3 Surround each option by quotes (") when using the standard option syntax.