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
What is proc sort?
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
what are some differences between proc summary and proc means? : Sas programming
what are _numeric_ and _character_ and what do they do? : Sas programming
how will you locate the sas platform applications? : Sas-bi
Why double trailing @@ is used in input statement?
What are the statements that are executed only?
for whom is sas data integration studio designed? : Sas-di
how to remove duplicates using proc sql?
Mention sas system options to debug sas macros.
what is metadata? : Sas-bi
how does sas handle missing values in assignment statements? : Sas programming
why a stop statement is needed for the point= option on a set statement?
How to create a permanent sas data set?