Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / ashutosh

%macro mydata(my,n);
data XXX;
merge
%do i=1 %to &n;
&my&i
%end;
;
by a;
run;
%mend;
%mydata(file,4);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the function of catx syntax? : Sas-administrator

1058


what is the difference between nodup and nodupkey options? : Sas programming

1138


what is sas data set?

1069


How to limit decimal places for variable using proc means?

1062


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

4449


how do the in= variables improve the capability of a merge? : Sas programming

1412


What system options would you use to help debug a macro? : sas-macro

1069


explain the use of % includes a statement in sas? : Sas-administrator

967


what are the categories that sas informats are used to the place the data? : Sas-administrator

1008


for what purpose would you use the retain statement? : Sas programming

1044


In sas, what are the areas that you are most interested in? : sas-grid-administration

1039


where are dashboard components are created and maintained? : Sas-bi

985


Tell e how how dealt with..

2189


how would you create multiple observations from a single observation? : Sas programming

967


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1124