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
%MACRO Data_Create;
%Do i = 1 %to 365;
INPUT a @@;
CARDS;
4*&i-3 4*&i-2 4*&i-1 4*&i
;
RUN;
%MEND;
%Data_Create;
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Difference between sum function and using “+” operator?
describe the interaction table in sas di? : Sas-di
Mention what is SAS data set?
What is a put statement?
if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...
What would be the value of month at the end of data step execution and how many observations would be there?
How do you connect the desktop application to metadata server? : sas-grid-administration
What is the basic syntax style in SAS?
What are the statements in proc sql?
What is the difference between match merge and one to one merge?
Mention what are the data types does SAS contain?
What is the use of the %include statement?
what is sas data set?
What is the difference between %local and %global? : sas-macro
How can you limit the variables written to output dataset in data step?