BookmarkSubscribeRSS Feed
Kelroy22
Fluorite | Level 6

 

Hi. Do you Guys have any idea  why the labeling is not working?

 

proc print data=work.CONTROL label;

var ProductType PapirNavn isinkode fondskode nominal_base ca_pv_base SystemNr DelBeh NotaNr riskType;

label nominal_base = 'Nominelt d.kr.'

ca_pv_base = 'Kursvardi d.kr.';

run;

 

4 REPLIES 4
Kelroy22
Fluorite | Level 6
I have used the proc print inside and outside a macro. Still not working.
Kurt_Bremser
Super User

Please post your log.

For reference, this works:

proc print data=sashelp.class label noobs;
var name;
label name='test';
run;

Result:

test

Alfred 
Alice  
Barbara
Carol  
Henry  
James  
Jane   
Janet  
Jeffrey
John   
Joyce  
Judy   
Louise 
Mary   
Philip 
Robert 
Ronald 
Thomas 
William
Kelroy22
Fluorite | Level 6

It Works if im opening a complete new sas e.g. program but it is not working in an exisiting sas e.g. project?

 

Have you any idea why?

 

Steffan

Kurt_Bremser
Super User

Work in steps. Start with the code that works, and then add code and test with every single step. Something in your other code causes a problem.

And enable us to follow Maxim 2 (post the log).

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 4 replies
  • 801 views
  • 1 like
  • 2 in conversation