PARSE Macro

The PARSE macro segments a text string and puts the segmented contents in variables.

Parameters: PARSE Macro

Example: PARSE Macro

In the following example, the PARSE macro is used to segment the ABC 123 456 789 input string. The delimiter is the default (space). The segments are placed in the &FRW* variables.

The results will be:

PROD------ Automation Services : PARSE Macro Parameter Definition ------------- Command ===> Function=BROWSE .- String to be Segmented ----------------------------------------------------. | Input .... ABC 123 456 789 | | (Text String or Variable(s)) | '-----------------------------------------------------------------------------' .- Variables to be Created ---------------------------------------------------. | Output ... FRW* | | (name or name1,name2... or name1(len),name2(len).. or prefix*) | '-----------------------------------------------------------------------------' .- How to Segment the Input String -------------------------------------------. | By Length ...... (YES or NO) | | OR By Delimiter ... (Eight separate characters may be specified) | | | | Preserve Leading and Trailing Blanks? ..................... NO (YES or NO) | | | | Create NULL Variables if consecutive delimiters found? .... YES (YES or NO) | | | | Remainder String Variable Name (If remainder required) .... | '-----------------------------------------------------------------------------' F1=Help F2=Split F3=Exit F9=Swap


Copyright © 2010 CA. All rights reserved.