[ ] Function

Brackets are used to extract a substring from an attribute.

Format

attribute ['start  ', 'length  ']

Parameter(s)

attribute

Identified either by attribute number or by attribute name. Attribute numbers, literals in single or double quotes, or expressions can be specified within the brackets. Brackets are part of the syntax and must be included.

start

Starting position of the first character to be extracted. Must be enclosed in quotes.

length

Number of characters to be extracted. Must be enclosed in quote.

For example, the A correlative in the next command line returns the fourth and fifth digits of the attribute named SS-NUM:

A ; N(SS-NUM) [ '4' , '2' ]

See Also

A Code

R Function

S Function

IF/THEN/ELSE

Special System Functions