BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Tpham
Quartz | Level 8

 So basically i have a value (0.126) that I outputted using the out statement from a procedure. It's outputted into a dataset and looks pretty much like this right now:

 

data have;
infile datalines dsd;
input value label ~ $ 200. ;
datalines;
0.126,XXXX
;
run;

 

 Basically I want to use that 0.126 as a macro value, basically this is what I want:

 

%let value=0.126;

title "Blah blah blah value=&value"; ods rtf prepage="Blah blah blah value=&value";

 

Wanted Output from ODS text:

Blah blah blah value=0.126

The disconnect right now, I am unsure how to export the 0.126 into the macro variable value from a dataset, so I can use it in the ODS text above.

 

I have to do this multiple times for a lot of analyses, so I am trying to build this code somehow into my current macro.. I am unsure if it is possible?

1 ACCEPTED SOLUTION
1 REPLY 1

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