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

What do the put and input function do?

1073


What are the five ways to do a table lookup in sas? : sas-grid-administration

1066


how do you want missing values handled? : Sas programming

965


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

1150


What’s the difference between var b1 – b3 and var b1 — b3?

1371


how to read the variables in sas? : Sas-administrator

1025


Explain the special input delimiters used in sas programming.

1014


what is enterprise guide? What is the use of it? : Sas programming

1026


What is the difference between proportion and average?

3342


How does the internal authentication work in sas? : sas-grid-administration

1131


Give e an example of..

2105


Difference between nodup and nodupkey options?

1201


what do you mean by data staging area? : Sas-di

1152


What are the new features included in the new version of SAS Programming Language?

1216


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

1037