This document covers the following topics:
The following symbols are used within the diagrams that describe the syntax of Natural statements:
||Upper-case non-italic letters indicate that the term is either a Natural keyword or a Natural reserved word that must be entered exactly as specified.|
||If an optional term in upper-case letters is completely underlined (not a hyperlink!), this indicates that the term is the default value. If you omit the term, the underlined value applies.|
||If a term in upper-case letters is partially underlined (not a hyperlink!), this indicates that the underlined portion is an acceptable abbreviation of the term.|
|| Letters in italics are used to represent variable information.
You must supply a valid value when specifying this term.
||Elements contained within square brackets are optional.
If the square brackets contain several lines stacked one above the other, each line is an optional alternative. You may choose at most one of the alternatives.
||If the braces contain several lines stacked one above the other, each line is an alternative. You must choose exactly one of the alternatives.|
||The vertical bar separates alternatives.|
||A term preceding an ellipsis may optionally be repeated. A
number after the ellipsis indicates how many times the term may be repeated.
If the term preceding the ellipsis is an expression enclosed in square brackets or braces, the ellipsis applies to the entire bracketed expression.
||A term preceding a comma-ellipsis may optionally be repeated; if
it is repeated, the repetitions must be separated by commas. A number after the
comma-ellipsis indicates how many times the term may be repeated.
If the term preceding the comma-ellipsis is an expression enclosed in square brackets or braces, the comma-ellipsis applies to the entire bracketed expression.
||A term preceding a colon-ellipsis may optionally be repeated; if
it is repeated, the repetitions must be separated by colons. A number after the
colon-ellipsis indicates how many times the term may be repeated.
If the term preceding the colon-ellipsis is an expression enclosed in square brackets or braces, the colon-ellipsis applies to the entire bracketed expression.
|All other symbols except those defined in this table must be
entered exactly as specified.
Exception: The SQL scalar concatenation operator is represented by two vertical bars that must be entered literally as they appear in the syntax definition.
|operand1 [operand2 ]|
operand1 and operand2 are user-supplied variables for which you specify the names of the objects you wish to deal with.
The braces indicate that you must choose whether to specify either
MAP; however, you must specify one of the
The square brackets indicate that
operand2 are optional elements which you can, but
need not, specify.
The ellipsis indicates that you may specify operand2 several times.
Whenever one or more operands appear in the syntax of a Natural statement, the following table is provided:
|Operand||Possible Structure||Possible Formats||Referencing Permitted||Dynamic Definition|
This table provides the following information on each operand:
Indicates the structure which the operand may take:
|S||Single occurrence (scalar; that is, a field/variable which is neither an array nor a group).|
|N/M||Natural system variable:|
|N||All system variables can be used.|
|M||Only modifiable system variables can be used. For information on whether the content of a system variable is modifiable or not, see the Natural System Variables documentation.|
Indicates the format which the operand may take:
|A||Alphanumeric (EBCDIC code page)|
Indicates whether the operand may be referenced or not, using a statement label or the source code line number.
Indicates whether the field may be dynamically defined within the body of the program. This is possible in reporting mode only.