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 is the role of unrestrictive users? : sas-grid-administration

658


what is factor analysis? : Sas-administrator

721


what is information maps?

1715


What are the advantages of using sas?

728


Describe what are the different levels of administrative users in sas? : sas-grid-administration

679






What do the PUT and INPUT functions do?

883


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

655


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

1773


What areas of SAS are you most interested in?

1162


how will you location sas platform applications available from web browser? : Sas-bi

656


how do you test for missing values? : Sas programming

673


What are the functions used for character handling?

746


What does proc print, and proc contents are used for?

705


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

672


What are the statements in proc sql?

667