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
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
Difference between nodup and nodupkey options?
If money were no object, what would you like to do?
how to debug and test the sas program? : Sas-administrator
what is operational data and operational system? : Sas-di
What is the use of PROC gplot?
What are the data types that sas contain?
what is snowflake schema? : Sas-di
What are the functions used for character handling?
what is change analysis in sas di ? : Sas-di
what is null hypothesis? why do you consider that?
what are validation tools that are used in sas? : Sas-administrator
What are the difference between the sas data step and sas procs?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
Mention the difference between ceil and floor functions in sas?