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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1255 views
  • 0 likes
  • 2 in conversation