Things under legendu
**
Things under legendu
Data Formatting¶
To add labels to a variable, You can use the statement
labelto add labels to a variable in SAS. And it doesn’t matter whether you use the quotation marks for the label string or not.The
labelstatement in SAS is somehow similar to theformatprocedure. The difference is thatlabelexplains the name of variables whileformatexplains the value of variables.To quickly remove all labels
proc datasets library=mylib nolist;
modify mydataset;
attrib _all_ label='';
quit;There are times in SAS when you simply want to remove all the formats from a dataset. This can be done in one line in a data step.
data unformatted;
set formatted;
format _all_;
run;