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
Sorry missed the data step here is the corrected Version;
%MACRO Data_Create;
%Do i = 1 %to 365;
DATA file&i;
INPUT a @@;
CARDS;
4*&i-3 4*&i-2 4*&i-1 4*&i
;
RUN;
%MEND;
%Data_Create;
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Mention what are the data types does SAS contain?
In proc transpose and data step with arrays which one you pick?
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks
Describe a time when you were really stuck on a problem and how you solved it?
what are some differences between proc summary and proc means? : Sas programming
How sas treats the dsd delimiters?
what is function of retain statment
what type of graphs we will create(for 2+years candidates)?
do you prefer proc report or proc tabulate? Why? : Sas programming
What is maximum number of rows and cols can be handled in SAS?
Tell me more about the parameters in macro? : sas-macro
how would you create multiple observations from a single observation? : Sas programming
how would you determine the number of missing or nonmissing values in computations? : Sas programming
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
What is program data vector (pdv) and what are its functions?