Workstation-Attached Environments - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide

Product
Teradata Preprocessor2
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-06-19
dita:mapPath
whb1544831946911.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2446
lifecycle
previous
Product Category
Teradata Tools and Utilities

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, Solaris, 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.

  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>

Consider the following points.

  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.