CURPREFIX(prefix) -c Syntax |Preprocessor2 for Embedded SQL (PP2) - CURPREFIX(prefix)
-c prefix - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Preprocessor2
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2023-11-20
dita:mapPath
nyr1691484085721.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
xfi1470440464166
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