DATA Step, Macro, Functions and more

Exporting dataset to MS Access 2010

Reply
New Contributor
Posts: 3

Exporting dataset to MS Access 2010

How do I go about exporting a dataset to an existing table in access?

Can someone give me an example and sample code to start with?

Kinda lost on this one..

Respected Advisor
Posts: 4,644

Re: Exporting dataset to MS Access 2010

It is quite simple using SQL :

libname ac Access "myDatabase.accdb";

proc sql;

insert into ac.myTable (myVar1, myVar2, myVar3)

select myVar1, myVar2, myVar3

from myDataset;

quit;

PG

PG
Ask a Question
Discussion stats
  • 1 reply
  • 181 views
  • 0 likes
  • 2 in conversation