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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 723 views
  • 0 likes
  • 2 in conversation