BookmarkSubscribeRSS Feed
robertrao
Quartz | Level 8

Hi,

This is the usage of a SET statement inside a macro..

i do not understand the actual logic how this works ,,,could someone explain to me with a example???

each time when we call the macro the ds changes what will happen to the OUT can you run a sample of the code????

with the first run as shown dataset one contains the COMBO

How will we deal with it in the next run??????

My main concern:why are we putting the &out in the SET?How is it useful while calling???

Thanks

data &out;

  set &out &ds.itbx &ds.extbx ;

  by mrn1;

run;

%macro( ds=abc out=one  );

%macro(ds=def, out=??);


1 REPLY 1
robertrao
Quartz | Level 8

Hi,

Please help me understand

Thanks

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

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1038 views
  • 0 likes
  • 1 in conversation