Scalable Database Server, HiRDB Version 8 UAP Development Guide

[Contents][Index][Back][Next]

7.5.1 Coding rules

When a UAP is written, the labeling rules, SQL coding rules, and SQL syntax rules must be followed.

Organization of this subsection
(1) Labeling rules
(2) SQL coding rules

(1) Labeling rules

The labeling rules are basically same as for COBOL. These rules apply to labels:

(a) SQL reserved words
(b) Host names

Embedded variables, indicator variables, and branching destination labels must be named in accordance with the COBOL labeling rules.

The following labels, which have the external attribute, cannot be used:

(2) SQL coding rules

  1. Members of an object cannot be used as embedded variables.
  2. An object method cannot be specified in the WHENEVER statement.
  3. An SQL statement cannot be coded in a class definition.

All other coding rules are the same as for COBOL. For details, see 7.3.1(2) SQL coding rules.