08-28-2014 11:56 AM
the code that doesn't work (doesn't label the two variables)
and job_title like '%Rep%';
label Job_Title='Sales Title'
drop Employee_id gender Birth_date;
proc print data=work.subset_pmlabel;
this is directly from sas e-training, I reeeeealy don't see any difference between.
thanks in advance
08-28-2014 12:12 PM
Yes, if you want to display labels instead of variable names you have to use label in proc print
proc print data=work.subset_pmlabel label;
You can also use proc contents to see labels assigned to variables in the dataset.