SEGMENT_CODE (segment-name)
The SEGMENT_CODE function returns the segment code associated with a segment definition. A character string identifying the segment definition by name is the only optional parameter that can be specified. If this parameter is omitted, the segment code for the current (default) segment occurrence is returned. Examples of the SEGMENT_CODE function follow:
OUTPUT SEGMENT=SEGA,FIELDS=(SEGMENT_CODE(),3:*)
OUTPUT SEGMENT=SEGB,
FIELDS=(SEGMENT_CODE(SEGA),'SEGB',3:*)
OUTPUT SEGMENT=SEGB,
FIELDS=(SEGMENT_CODE(SEGA),'SEGB',3:*)
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*