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 is the difference between %local and %global? : sas-macro
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
What is connection profile? : sas-grid-administration
what r the job openings SAS for fresher graduates !
How do dates work in sas?
What is the difference between where and if statement?
What does PROC print, and PROC contents do?
what versions of sas have you used (on which platforms)? : Sas programming
State the difference between INFORMAT and FORMAT ?
what techniques and/or procs do you use for tables? : Sas programming
what are some good sas programming practices for processing very large data sets? : Sas programming
How to limit decimal places for variable using proc means?
describe the interaction table in sas di? : Sas-di
What is the difference between nodupkey and nodup options?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming