[attrname := ] APPLY(dataset, actionlist [ , BEFORE( actionlist ) ] [ , AFTER( actionlist [, UNORDERED | ORDERED( bool ) ] [, STABLE | UNSTABLE ] [, PARALLEL [ ( numthreads ) ] ] [, ALGORITHM( name ) ]) ] )
The APPLY action performs all the specified actions in the actionlist on each record of the nominated dataset. The actions execute in the order they appear in the actionlist.
Example:
EXPORT x := SERVICE echo(const string src):library='myfuncs',entrypoint='rtlEcho'; END; APPLY(person,x.echo(last_name + ':' + first_name)); // concatenate each person's lastname and firstname and echo it
See Also: SERVICE Structure, DATASET