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 / satheesh
%macro sam (&mon);
data &mon1.;
set &mon.;
run;
proc append base = sav.appendData data = &mon.;
run;
%mend;
%sam(Jan);
%sam(Feb);
%sam(Mar);
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
why is a stop statement needed for the point=option on a set statement? : Sas programming
In sas, what are the areas that you are most interested in? : sas-grid-administration
How do you control the number of observations and/or variables read or written?
describe how to adjust the performance of data integrator? : Sas-di
Explain the purpose of retain statement.
Hi, If anyone has base SAS certification dumps, please share.
What is the use of stop statement?
how to change the execute of macro
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
What are common programming errors committed in sas
What is the work of tranwrd function?
What’s the difference between var b1 – b3 and var b1 — b3?
Name validation tools used in SAS
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
what are the component of range? : Sas-bi