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 sas and what are the functions? : Sas-administrator

1002


Mention the category in which sas informats are placed?

1027


What do you code to create a macro? : sas-macro

1151


what is null hypothesis? why do you consider that?

2918


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

1173


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

1446


How to sort in descending order?

1267


what is data governance? : Sas-di

1034


What is the SAS data set?

1146


how are numeric and character missing values represented internally? : Sas programming

1156


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

1120


How you can read the variables that you need?

1131


what are the considerations when picking a SAS/STAT procedure?

3385


What is substr function?

1200


List out some key concept of SAS

1142