Host identifiers

A host-identifier is a name declared in the host program. The rules for forming a host-identifier are the rules of the host language; except that DBCS characters cannot be used. For example, the rules for forming a host-identifier in a COBOL program are the same as the rules for forming a user-defined word in COBOL. Names beginning with the characters 'SQ'16, 'SQL', 'sql', 'RDI', or 'DSN' should not be used because precompilers generate host variables that begin with these characters. In Java(TM), do not use names beginning with '__sJT_'.

See Table 2 for the limits on the maximum size of the host identifier name imposed by DB2 UDB for iSeries.


16.
'SQ' is allowed in C, COBOL, and PL/I; it should not be used in RPG.