SAS Component Language Dictionary |
Category: | Utility |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
rc=NAMEDIVIDE(name,num-parts, part-1, . . . part-4); |
contains the return code for the operation:
0 | |
0 |
is the name of a two- to four-part compound name to be separated.
returns the number of parts in name.
Note: This parameter is an update parameter. See Input, Output, and Update Parameters for more information.
contains the values of the first through fourth parts of name.
Note: These parameters are an update parameters. See Input, Output, and Update Parameters for more information.
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 |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.