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

How could i automate the code in the scenario:Every month
one new data set will be created for that perticular month
transaction list.Now i would like to update the data in the
source table by appending every month data automatically.
jan---set jan;
feb---set jan feb;
mar---set jan mar;

Answer Posted / naresh

%macro update_table(demo1)
%let X = "JAN,FEB,MAR,APR";

%do i = 1 %to 4
%let y = scan(&x,i,',');

data &Master_table;
update &Master_table &y;
by acc_id;
run
%let i = %eval(&i+1);
%end;
%mend update_table;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you create a macro variable with in data step? : sas-macro

984


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

992


Enlist the functions performed by sas.

1072


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

968


What is the use of divide function?

1009


what is sas metadata repository? : Sas-bi

1052


Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma

3467


For what purpose would you use the RETAIN statement?

1464


how will you locate the sas platform applications? : Sas-bi

980


What do the mod and int function do? : Sas programming

1129


How would you define the end of a macro? : sas-macro

1034


If a variable contains letters or special characters, can it be numeric data type?

1160


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?

1108


What can you learn from the SAS log when debugging?

1314


What are the 3 components in sas programming?

1150