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-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
  • 4 replies
  • 1269 views
  • 1 like
  • 2 in conversation