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 is the difference between %local and %global? : sas-macro

1241


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

1265


What is connection profile? : sas-grid-administration

1234


what r the job openings SAS for fresher graduates !

2502


How do dates work in sas?

1191


What is the difference between where and if statement?

1152


What does PROC print, and PROC contents do?

1278


what versions of sas have you used (on which platforms)? : Sas programming

1134


State the difference between INFORMAT and FORMAT ?

1154


what techniques and/or procs do you use for tables? : Sas programming

1104


what are some good sas programming practices for processing very large data sets? : Sas programming

978


How to limit decimal places for variable using proc means?

1160


describe the interaction table in sas di? : Sas-di

1079


What is the difference between nodupkey and nodup options?

1082


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

1186