BookmarkSubscribeRSS Feed
hpl104
Calcite | Level 5

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

4 REPLIES 4
Doc_Duke
Rhodochrosite | Level 12

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

hpl104
Calcite | Level 5

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

Doc_Duke
Rhodochrosite | Level 12

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

hpl104
Calcite | Level 5

Thanks alot Doc. Have a great weekend!

Hui

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1572 views
  • 1 like
  • 2 in conversation