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 / singh.naveen409
%macros mydata(my,n);
data www;
set
%do i=1 %to &n;
&my&i
end;
;
run;
%mend;
%mydata(file,4);
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
Which command is used to perform sorting in sas program?
Explain what is SAS informats?
Mention few capabilities of sas framework.
what techniques and/or procs do you use for tables? : Sas programming
What are the parameters of scan function?
For clinical entire study how many tables will create approx?
What are the differences between sum function and using “+” operator?
Explain what is data step?
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
which date functions advances a date time or date/time value by a given interval? : Sas programming
explain about various caches available in data integrator? : Sas-di
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
Mention the validation tools used in SAS?
What versions of SAS have you used (on which platforms)?
what is business intelligence? : Sas-bi