BookmarkSubscribeRSS Feed
Peter_C
Rhodochrosite | Level 12

Art

as you haven't mentioned it, I might be bringing up an idea that is as  new to you as it was to me (last week!)

Use the SASTRACE option before PROC IMPORT from excel file types, to see the underlying SAS SQL code with options passed into excel (a bit like getting the code for CSV import).

The standard sastrace option I used :

options sastrace=',,,d' sastraceloc=saslog nostsuffix;

The examples in the documentation of SASTRACE reveal an even greater degree of detail might be available.

regards

Peter

art297
Opal | Level 21

: No, that was new to me as well!  Yes, some other option settings would be needed to see exactly what they (SAS) did, and how, but it appears that the import is simply using the excel engine in a libname statement and then running proc sql and setting everything needed using various dbdsopts settings.  Yes, definitely similar to getting the code for CSV imports.

Much appreciated,

Art

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 16 replies
  • 2400 views
  • 4 likes
  • 5 in conversation