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
Can you suggest us materials for sdtm mapping?
Explain the use of proc print and proc contents?
what are the categories that sas informats are used to the place the data? : Sas-administrator
Explain data_null_?
What are the differences between proc means and proc summary?
What is the work of tranwrd function?
how to change the execute of macro
What are the features of SAS?
How can I remove header from output data set?
What do you know about symput and symget?
What do you know about sas data set?
which features do you use to check the data validations and errors? : Sas-administrator
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
To what type of programms have you used scratch macros?
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?