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 we can create SAS USER DEFINED CODE?

2090


What is the maximum and minimum length of macro variable

1242


describe about physical data integration? : Sas-di

1040


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

1206


what is operational data and operational system? : Sas-di

1102


What is your favorite all time computer book? Why?

2504


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

1205


How to create a permanent sas data set?

1226


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

3462


What is substr function?

1179


what do the pad and dim functions do? : Sas programming

1016


How does proc sql work?

1071


how does sas handle missing values in assignment statements? : Sas programming

1016


What are types of transport files?

7984


Can you execute macro within another macro? : sas-macro

992