FIELD() and NFIELD() Functions - Access Data in Template Fields
Syntax
FIELD(strname,str{,int}{,ERR=lineref})
NFIELD(strname,str{,int}{,ERR=lineref})
FIELD(strname{,ERR=lineref})
Description
The FIELD() and NFIELD() functions allow access to data stored in a string template. To access character (string) data, use FIELD(). To access numeric data, use NFIELD().
Parameter |
Description |
---|---|
strname |
Simple string variable dimensioned with a template. |
str |
Field name within the template. If this parameter does not appear in strname, an !ERROR=47 is generated. |
int |
Index of the array specified by str. |
ERR=lineref |
Branch to be taken if an error occurs during execution. |
See the FIELD() and NFIELD() functions in String Templates for additional information.