SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
souji
Obsidian | Level 7

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

1 REPLY 1
Tom
Super User Tom
Super User

@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.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 445 views
  • 0 likes
  • 2 in conversation