Labels

Friday, August 13, 2010

remove labels formats informats from a SAS data set

The following example of code removes all labels and formats for the dataset temp in the directory referenced by the LIBNAME WORK:

proc datasets lib=work nolist;
modify temp;
attrib _all_ label=''; *Remove labels;
format _all_; *Remove formats;
informat _all_; *Remove informats;
quit;
run;

It can also be done in the data step:

data temp;
set temp;
attrib _all_ label=''; *remove labels;
format _all_; *remove formats;
informat _all_; *remove informats;
run;

No comments:

Post a Comment