BookmarkSubscribeRSS Feed
jerry898969
Pyrite | Level 9
Is there a way to make SAS run it's functions on a query to oracle? This way I don't have to worry about how oracle handles the functions.

Thank You
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Suggest the OP share a code example for more specific, tailored guidance.

Scott Barry
SBBWorks, Inc.

SAS/ACCESS for Relational Databases: Reference, Optimizing Your SQL Usage
http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/a002254657.htm
jerry898969
Pyrite | Level 9
Scott,

Thank you for your reply.

ex.

Proc sql ;
select max(id)
from oracle.customers
quit ;

In this instance is there a way to have sas get all the rows from oracle then run the sas max function to get the correct value?

I know I can just bring in the table and do it in seperate steps but I was asked to see if this example is possible.

Thank you
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Check SAS/ACCESS DOC and PASS-through facility using the CONNECTION parameter as part of your SELECT.

Scott Barry
SBBWorks, Inc.


Suggested Google advanced search argument, this topic / post:
proc sql nested query oracle site:sas.com

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1207 views
  • 0 likes
  • 2 in conversation