BookmarkSubscribeRSS Feed
Obsidian | Level 7

Hi all

Is there any way to verify before executing whether a PROC SQL query may run fully in-database? ex: LIBNAME DB2

I'd like to reduce data movement/translation and leverage PROC SQL's use of the Pass-Through Facility but if the database itself cannot process the query than I'd like to avoid PROC SQL from processing any portion of the query itself. Also, is it possible to copy to the log PROC SQL's translated query destined for the pass-through facility? (i.e. describe w/o executing) This may help when translating SQL syntax across different DBMS.

Thanks for your help in advance.

Opal | Level 21

When you use Proc Sql Pass-Through Facility, Proc SQL does NOT handle "any portion of the query itself". 


Obsidian | Level 7

Thanks PG. Agreed. Sorry, I misstated my question. I'd like to leverage implicit libname rather than explicit pass-through. With explicit pass-through, if a similar query is being run across two or more different DBMS, the query syntax may need to be manually translated (or dynamically translated through macros). In general, it would nice for others to interpret or maintain a single (and maybe simpler) syntax. I shouldn't have suggested that implicit libname generates explicit pass-through code. However, if implicit libname does generate the proper explicit syntax behind the scenes, I'd like to export that translation to the log.



Time is running out to save with the early bird rate. Register by Friday, March 1 for just $695 - $100 off the standard rate.


Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 


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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2 in conversation