Help using Base SAS procedures

SET Statement

Reply
Super Contributor
Posts: 1,040

SET Statement

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=??);


Super Contributor
Posts: 1,040

Re: SET Statement

Hi,

Please help me understand

Thanks

Ask a Question
Discussion stats
  • 1 reply
  • 124 views
  • 0 likes
  • 1 in conversation