Chapter Contents

Previous

Next
NAMEMERGE

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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.