Previous Page | Next Page

SAS Component Language Dictionary

NAMEMERGE



Returns a compound name by merging name parts
Category: Utility

Syntax
Details
Example
See Also

Syntax

name=NAMEMERGE(part-1,part-2<,part-3<,part-4>>);

name

contains a two- to four-part compound name. Name is blank if any error is detected.

part-1 . . . part-4

contain the name segments to be merged. Both part-1 and part-2 must be specified.


Details

NAMEMERGE creates a SAS name by merging the values that are stored as two to four parts. If four parts are specified, then part-1 and part-4 can be blank.


Example

Create a CATALOG entry name, using the values stored in the variables LIBREF, CATALOG, NAME, and TYPE. Then run the CATALOG entry through DISPLAY.

entry=namemerge(libref,catalog,name,type);
if (entry^=' ') and (cexist(entry)) then
    call display(entry);


See Also

NAMEDIVIDE

Previous Page | Next Page | Top of Page