CURPREFIX(prefix)
-c prefix - 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

Purpose

Specifies the prefix to be used in conjunction with the cursor ID. The prefix and cursor ID identify the cursor that is used in these cursor manipulation statements:
  • CLOSE
  • DECLARE
  • FETCH
  • OPEN
  • POSITION

Usage Notes

The abbreviation for CURPREFIX is CP.

CURPREFIX is required for a C program precompilation that contains a cursor type request. CURPREFIX is optional for COBOL and PL/I.

In the absence of this option, PP2 does the following:

Language Action Taken by PP2
C Issues an error as each cursor request is processed.
COBOL Uses as a default value the name found in the PROGRAM-ID COBOL statement.
PL/I Uses as a default value the name found on the first PROC statement.

For DB2 compatibility in cursor processing, the CURPREFIX option must specify different prefixes for each compile unit of the executable module.

To maintain compatibility with earlier releases of PP2, the CURPREFIX value must be the same for all compile units of an executable module.

The prefix must be no longer than eight characters and must not include any of these characters:
  • Apostrophe
  • Quote
  • Space