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
What are common programming errors committed in sas
Describe the ways in which you can create a macro variable?
Enlist the functions performed by sas.
What are all the problems you faced while validating tables and reports?
what is sas data set?
What is the SAS data set?
What is the basic syntax of a sas program?
why is sas considered self-documenting? : Sas programming
List out some key concept of SAS
how to change the execute of macro
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
What is the use of divide function?
what is the use of proc sql? : Sas programming
do you prefer proc report or proc tabulate? Why? : Sas programming
why is sas data integration studio important? : Sas-di