automating Excel and SAS ?

Reply
Occasional Contributor
Posts: 11

automating Excel and SAS ?

Is there a way to add a record in MS Excel and 'automatically' import the data to SAS?

Trusted Advisor
Posts: 2,115

Re: automating Excel and SAS ?

Do your import as a view rather than as a SAS dataset.

Occasional Contributor
Posts: 11

Re: automating Excel and SAS ?

Thanks for your swift response. How should my proc import statement look like if I were to import it as a 'view' rather than as a dataset? I apologize for my ignorance . .. We use SAS Enterprise Guide here and I do not have sufficient authorization to do DDE . ..

With kind regards,

Hui

 

Hui P. Liew, Ph.D.

Data Analyst

MedExpress Headquarters

1751 Earl Core Road

Morgantown, WV 26505

Trusted Advisor
Posts: 2,115

Re: automating Excel and SAS ?

Hui,

Drat -- they changed the option in EGuide 5.1.  In 4.x, you could set a global parameter to create views instead of datasets (in tools --> options).  Although there is a reference to in in the query builder help, I can't find it (In query builder, you can change the data type via the options button in the task).  The import wizard does not allow the change for one file.

Since you are using EGuide, you could put the import in the autoexec process flow and it would update each time the project is opened. 

Another approach if you are creating the data for others to use, which is more semi-automagic, would be to use a scheduled task to run the import activity that kicks off frequently.

Doc

Occasional Contributor
Posts: 11

Re: automating Excel and SAS ?

Thanks alot Doc. Have a great weekend!

Hui

Ask a Question
Discussion stats
  • 4 replies
  • 290 views
  • 1 like
  • 2 in conversation