4. CA MICS Facilities › 4.4 SAS Functions and Call Routines › 4.4.2 SAS Function and Call Routine MALABEL
4.4.2 SAS Function and Call Routine MALABEL
Name: MALABEL
Abstract: Provides dynamic access to the value of a
label assigned to a SAS variable.
External
Specifications: CALL MALABEL(value, name); /*Call Routine */
-or-
value=MALABEL(name); /*Function */
The variables value and name are character variables
defined as follows:
value - a 1- to 200-character variable that contains the
value of the label associated with SAS variable
whose name is in "name".
name - variable containing the 8-character name of a SAS
variable.
Sample usage:
data _null_;
...
length VARLABEL $40 VARNAME $8;
retain VARLABEL VARNAME ' ';
label ASID = 'Address Space Identification';
VARNAME='ASID';
call MALABEL(VARLABEL, VARNAME);
put VARLABEL=;
run;
The following would be printed on the SAS log:
VARLABEL=Address Space Identification