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


Please Help Members By Posting Answers For Below Questions

Explain the use of proc gplot? : sas-grid-administration

644


What can be the size of largest dataset in SAS?

814


What sas features do you use to check errors and data validation?

820


What do you code to create a macro? : sas-macro

676


what is the difference between infile and input? : Sas-administrator

716






What versions of SAS have you used (on which platforms)?

1127


What are the features of SAS?

666


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.

1558


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

1259


How is character variable converted into numeric variable and vice versa?

710


Difference between sum function and using “+” operator?

700


What is a pdv and what are its functions?

682


Differentiate between sas functions and sas procedures.

738


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

2004


Did you used proc test? when?

1688