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
how to remove duplicates using proc sql?
Explain bmdp procedure?
What do the PUT and INPUT functions do?
What do you know about symput and symget?
what is the purpose of _error_? : Sas programming
What is the use of %include statement?
what is treatment emergent events and treatment emregent adverse event
: and & modifiers.
What are the features of SAS?
What is the difference between input and infile statement?
What do you understand by the term Normal Distribution?
Explain input and put function?
What does the trace option do?
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
What are the differences between sum function and using “+” operator?