The FLDUPDATE function updates the contents of a field pointed to by an index for a given record and output datastore. Accepts an index which points to the position of a field in the current record. The contents of the first parameter field are copied to the field pointed to by an second parameter index value.
Category
Record
Syntax
*FLDUPDATE(*str, DS *, REC_ALIAS*, index)*
*FLDUPDATE'string', DS *, '<recname>' | variable *, index *)*
Parameters and Descriptions
| Parameter | Description |
|---|---|
| 'string' |
String variable with source update value. |
| DS | Specifies the alias of a valid output datastore. |
| <recname> |
Resolves at runtime to a string and represent the record name used to locate the record alias in the description of the specified output datastore. |
| index |
An index pointer to a given field within the specified record alias of the input datastore. |
Example
FLDUPDATE(V_INPUT_STRING, V_DATAST_ALIAS, RECNAME(OUTPUT DATASTORE), INDEX)