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 / jugaadu

Sorry missed the data step here is the corrected Version;


%MACRO Data_Create;
%Do i = 1 %to 365;
DATA file&i;
INPUT a @@;
CARDS;
4*&i-3 4*&i-2 4*&i-1 4*&i
;
RUN;
%MEND;

%Data_Create;

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you suggest us materials for sdtm mapping?

4200


Explain the use of proc print and proc contents?

692


what are the categories that sas informats are used to the place the data? : Sas-administrator

757


Explain data_null_?

755


What are the differences between proc means and proc summary?

755






What is the work of tranwrd function?

838


how to change the execute of macro

1849


What are the features of SAS?

719


How can I remove header from output data set?

2268


What do you know about symput and symget?

884


What do you know about sas data set?

741


which features do you use to check the data validations and errors? : Sas-administrator

715


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2044


To what type of programms have you used scratch macros?

2290


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2123