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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 645 views
  • 1 like
  • 2 in conversation