*******************************************************************************; ** SAS macro Lbl2Fmt vs. 1.0.7c, 2 Nov 2005, by Jim Groeneveld, Netherlands *; *******************************************************************************; ** *; *; %MACRO LBL2FMT /* Conversion of variable labels into varname format */ %* *; %* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*; %* *; %* History of LBL2FMT (since vs. 1.0.7b): *; %* ==================== *; %* version date description of changes, additions, improvements *; %* ------- ----------- ---------------------------------------------------- *; %* 1.0.7c 21 Oct 2005 corrected bug caused by correcting previous bug: *; %* format with uppercase varnames into VarList spec. *; %* 2 Nov 2005 corrected code for TempDir values with ~ characters *; %* 7 Nov 2005 reset SYSLAST variable to original DATA variable *; %* *; %******************************************************************************; In order to use the macro Lbl2Fmt.sas (in Lbl2Fmt.zip) you also have to download the auxiliary macro - ChkVar.sas (in ChkVar.zip) and make it available in your macro search path just like your other SAS macros or explicitly %include them in your SAS macro code. They are being automatically called from Lbl2Fmt.sas . Lbl2Fmt.sas (C) Jim Groeneveld.