create macros---you have 365 number of data and you need to
merge it throw the macros,,,,,,
data file1;
input a @@;
cards;
1 2 3 4
;
run;
data file2;
input a @@;
cards;
5 6 7 8
;
run;
data file3;
input a @@;
cards;
9 10 11 12
;
run;data file4;
input a @@;
cards;
13 14 15 16
;
run;
Answer Posted / singh.naveen409
%macros mydata(my,n);
data www;
set
%do i=1 %to &n;
&my&i
end;
;
run;
%mend;
%mydata(file,4);
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What is the difference between SAS functions and procedures?
Can you suggest us materials for sdtm mapping?
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
What are the five ways to do a table lookup in sas? : sas-grid-administration
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
name the scheduler for scheduling job and explain the scheduler? : Sas-di
what are the considerations when picking a SAS/STAT procedure?
Name any two sas spawners? : sas-grid-administration
What are the differences between proc means and proc summary?
How will you generate test data with no input data?
for whom is sas data integration studio designed? : Sas-di
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
What function CATX syntax does?
What is a method to debug and test your SAS program?
Tell me about % include and % eval? : sas-macro