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
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks
Describe the function and utility of the most difficult SAS macro that you have written?
How is character variable converted into numeric variable and vice versa?
Explain append procedure?
What do you know about sas data set?
What are the special input delimiters used in SAS?
What is interleaving in SAS?
What are the difference between ceil and floor functions in sas?
What is the difference between nodupkey and nodup options?
What areas of SAS are you most interested in?
Explain the use of proc print and proc contents?
Which command is used to perform sorting in sas program?
Why double trailing @@ is used in input statement?
how do the in= variables improve the capability of a merge? : Sas programming
What are the best sas programming practices for handling very large datasets? : sas-grid-administration