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
what is treatment emergent events and treatment emregent adverse event
what is slowly changing dimension? : Sas-di
I have a dataset concat having a variable a b & c. How to rename a b to e & f?
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
What is a put statement?
What are the data types in sas?
What commands are used in the case of including or excluding any specific variables in the data set?
What is the difference between the proc sql and data step?
How do you define proc in sas? : sas-grid-administration
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
How do you convert basic cube to transaction cube and transaction cube to basic cube?
what is the use of proc contents and proc print in sas? : Sas-administrator
What is the SAS data set?
what is the purpose of _error_? : Sas programming
Describe a time when you were really stuck on a problem and how you solved it?