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
Explain the use of proc gplot? : sas-grid-administration
What can be the size of largest dataset in SAS?
What sas features do you use to check errors and data validation?
What do you code to create a macro? : sas-macro
what is the difference between infile and input? : Sas-administrator
What versions of SAS have you used (on which platforms)?
What are the features of SAS?
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
How is character variable converted into numeric variable and vice versa?
Difference between sum function and using “+” operator?
What is a pdv and what are its functions?
Differentiate between sas functions and sas procedures.
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
Did you used proc test? when?