Chapter Contents |
Previous |
Next |
NAMEDIVIDE |
Category: | Utility |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
rc=NAMEDIVIDE(name,num-parts, part-1, . . . part-4); |
0 | successful |
0 | not successful |
Type: Numeric
Type: Character
Note: This parameter is an update parameter. See
Input, Output, and Update Parameters for more information.
Type: Numeric
Note: These parameters are an update parameters. See Input, Output, and Update Parameters for more
information.
Type: Character
Details |
NAMEDIVIDE divides a compound name into parts and returns the number of parts as well as the value of each part.
Note: NAMEDIVIDE does not validate individual parts
of the name.
Example |
Divide NAME into parts and invoke DIALOG if NAME is a FRAME entry. If NAME is not a FRAME entry, CALL DISPLAY.
rc=namedivide(name,parts,part1,part2,part3,part4); /* Was NAMEDIVIDE successful? */ if (rc^=0) then do; put 'Error: Invalid name ' name; return; type=upcase(part4); if (part4='FRAME') then call dialog(name); else call display(name);
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.