SubField - script and chart function
In its three-parameter version, this function returns a given substring from a larger string s with delimiter 'delimiter'. Index is an optional integer denoting which of the substrings should be returned. If index is omitted when subfield is used in a field expression in a LOAD statement, the subfield function will cause the LOAD statement to automatically generate one full record of input data for each sub-string that can be found in s.
In its two-parameter version, the subfield function generates one record for each substring that can be taken from a larger string s with the delimiter 'delimiter'. If several subfield functions are used in the same LOAD statement, the Cartesian product of all combinations will be generated.
Syntax:
SubField ( s, 'delimiter' [ , index ] )
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!