Hi , please help me here, should output data set with label change Annual Fee for Fee variable ? if not please explain me to understand
data work.AnualFee;
set cert.admit;
label Fee= 'Anual Fee';
run;
Thank You for helping me so far
@souji wrote:
Hi , please help me here, should output data set with label change Annual Fee for Fee variable ? if not please explain me to understand
data work.AnualFee;
set cert.admit;
label Fee= 'Anual Fee';
run;
Thank You for helping me so far
Your data step code will attach the label 'Annual Fee' to the variable FEE. If ADMIT did not have a variable named FEE then you will create a new one that has a missing value for every observation. If there was already a variable name FEE before there isn't anything in that code that will show you want the label used to be. You could run PROC CONTENTS on the CERT.ADMIT dataset and see what label, if any, was attached to FEE.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.