BookmarkSubscribeRSS Feed
hulst
Fluorite | Level 6

Why does importing sas code also need to execute it?

Can I skip the execution of the SAS code when importing the code?

If the SAS code takes 1 hour to run and I have n files to import it will take (n x 1) hours.:smileyshocked:

I already know the .sas code is perfect and will run. :smileylaugh:

3 REPLIES 3
LinusH
Tourmaline | Level 20

Yes, you could wish for a more syntax analyzing import rather than a full execution.

Consider to add a options obs= in your code, which you could remove after the import.

Data never sleeps
hulst
Fluorite | Level 6

A good point. Execution with less observations will run faster.

However an EG file with somewhere "proc SQL; drop table; create table as select * from other table;" does a lot of "damage" if just imported in the wrong server environment.

LinusH
Tourmaline | Level 20

This is typically part of a development process, and should NOT be done in prod environment.

Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 978 views
  • 3 likes
  • 2 in conversation