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.

Posted in reply to deleted_user
%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.

Posted in reply to deleted_user
Thanks a lot.
yyang
Ask a Question
Discussion stats
  • 2 replies
  • 156 views
  • 0 likes
  • 1 in conversation