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
I have a dataset concat having variable a b & c. How to rename a b to e & f?
How do you debug and test your SAS programs?
it will become easy if uuu provide website linkssss and list of consultanciessssss
Explain why double trailing @@ is used in input statement?
do you prefer proc report or proc tabulate? Why? : Sas programming
Give e an example of..
What is the difference between input and infile statement?
What is the SAS data set?
How substr function works in sas?
What would you change about your job?
how to remove duplicates using proc sql?
what is the use of sas management console? : Sas-di
Explain data_null_?
Can you execute macro within another macro? : sas-macro
what are sas/access and sas/connect? : Sas programming