BookmarkSubscribeRSS Feed
RajasekharReddy
Fluorite | Level 6

Hi,

 

want create macro varibale from dataset and this macro varible value has to assign same dataset another varible value

 

llike below data set 'Test' ;

 

varible_01  varible _02

xxxx             yyyyyyy

zzzz             ccccccc

ffffff             ggggggg

 

want to assing macro varible 'xxxxx' value as 'yyyyyy'

from each Varible_01 observation convert macro varble and it's value has to assign vairible_02 value

 

Thanks

 

 

4 REPLIES 4
Reeza
Super User

CALL SYMPUT() within a data _null_ step. The documentation has examples. 

 

RajasekharReddy
Fluorite | Level 6
Can you please provide the document , as i am unable to find that document
Kurt_Bremser
Super User

Just google for "call symput". You'll get a tankerload of hits.

Narrowing it down with "sas 9.4 call symput" is even more on target.

You need to refine your google-fu.

Patrick
Opal | Level 21

I normally restrict my search to support.sas.com

 

The following Google term should give you quite a good result:

site:support.sas.com 9.4 call symput

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 767 views
  • 0 likes
  • 4 in conversation