DATA Step, Macro, Functions and more

Short cut to list data set like d1, d2, ..., d62.

Reply
N/A
Posts: 0

Short cut to list data set like d1, d2, ..., d62.

Hi,
I'll need to stack 62 data sets together naming d1, d2, d3, ...d62. It's time consuming to type all 62 data set names. Is there any short cut to list the data set names? Thank you,
N/A
Posts: 0

Re: Short cut to list data set like d1, d2, ..., d62.

%macro stack();
data all;
*us a macro loop to create the code;
set
%do i=1 %to 62;
d&i.
%end;
;
run;
%mend stack;

*call the macro;
%stack;
N/A
Posts: 0

Re: Short cut to list data set like d1, d2, ..., d62.

Thanks a lot.
yyang
Ask a Question
Discussion stats
  • 2 replies
  • 151 views
  • 0 likes
  • 1 in conversation