/ Published in: SAS
Expand |
Embed | Plain Text
PROC EXPORT DATA= DATASET_NAME OUTTABLE= "TABLE_NAME" DBMS=ACCESS REPLACE; DATABASE="C:\DATABASE_NAME.MDB";
Comments
Subscribe to comments
You need to login to post a comment.
PROC EXPORT DATA= DATASET_NAME OUTTABLE= "TABLE_NAME" DBMS=ACCESS REPLACE; DATABASE="C:\DATABASE_NAME.MDB";
Subscribe to comments
You need to login to post a comment.
This works unless you want to re-create a table with the same name. Say I create AllData and then find that I have to add something to it or modify something in it, then I have to manually go to Access and remove the table SAS created and run the SAS code again.
Any chance you've found a way to have SAS dump the old table and replace it with the new one with the same name?
Whoops! I never check my comments on Snipplr.com.
Truth be told, I rarely do much Access DB work with SAS. But to answer your question, you could probably drop the table via Proc SQL and the query: DROP TABLE table_name.