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


Please Help Members By Posting Answers For Below Questions

What are common programming errors committed in sas

1110


Describe the ways in which you can create a macro variable?

1048


Enlist the functions performed by sas.

1081


What are all the problems you faced while validating tables and reports?

3411


what is sas data set?

1062


What is the SAS data set?

1094


What is the basic syntax of a sas program?

1156


why is sas considered self-documenting? : Sas programming

1091


List out some key concept of SAS

1057


how to change the execute of macro

2244


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1085


What is the use of divide function?

1021


what is the use of proc sql? : Sas programming

1072


do you prefer proc report or proc tabulate? Why? : Sas programming

943


why is sas data integration studio important? : Sas-di

989