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


Please Help Members By Posting Answers For Below Questions

What is the difference between SAS functions and procedures?

653


Can you suggest us materials for sdtm mapping?

4028


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

1837


What are the five ways to do a table lookup in sas? : sas-grid-administration

584


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

1647






name the scheduler for scheduling job and explain the scheduler? : Sas-di

582


what are the considerations when picking a SAS/STAT procedure?

2892


Name any two sas spawners? : sas-grid-administration

552


What are the differences between proc means and proc summary?

597


How will you generate test data with no input data?

558


for whom is sas data integration studio designed? : Sas-di

551


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

529


What function CATX syntax does?

683


What is a method to debug and test your SAS program?

706


Tell me about % include and % eval? : sas-macro

674