How to connect a database using wizard and save the table as a SAS dataset

Reply
Occasional Contributor
Posts: 8

How to connect a database using wizard and save the table as a SAS dataset

Hi,

 

i am using SAS Desktop version, i can only connect to database using wizard every time. Can some one suggest me how can i save the database table pulled from wizard saved into SAS Dataset.

 

I need this urgently please can someone help me on this.

 

Thanks,

Vamsi

Regular Contributor
Regular Contributor
Posts: 218

Re: How to connect a database using wizard and save the table as a SAS dataset

Posted in reply to msbrvamsi

Are you selecting File > Import Data and then working through there using a database as a source?

 

As one of the final steps it will ask if you want to save the code as Proc Import.  Do that and post it here.

 

Should look something like

PROC IMPORT OUT= WORK.name_you_select 
            DATATABLE= "name of the table being imported" 
            DBMS=ACCESS REPLACE;
     DATABASE="J:\Drive D\source path to file\some database.mdb"; 
     SCANMEMO=YES;
     USEDATE=NO;
     SCANTIME=YES;
RUN;

 

 

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