BookmarkSubscribeRSS Feed
Aidan
Quartz | Level 8

Hi there

 

Is it possible to execute a PL/SQL Oracle package on the Database via SAS DI Studio?

I know it is possible to execute functions in this manner, however haven't come across an actual PL/SQL package been executed in this manner.

 

If it is possible, would anyone have examples/reference doc's or code snippets to help me achieve this please.

 

A basic call of the package is below;

execute package.go();

 

Thank you

Aidan 

2 REPLIES 2
Patrick
Opal | Level 21

I normally split such questions into two parts:

1. How can I do it with SAS

2. Can I use an existing DIS transformation or do I need user written code or a user written transformation

 

For 1: Yes, via explicit pass-through SQL. Here an example: https://renenyffenegger.ch/notes/Companies-Products/SAS/programming/proc/sql/oracle/call-function

 

For 2: That will depend on the details of your task but the SQL transformations like Execute will already allow for quite a few things. Just make sure to enable explicit pass-through so that you can use DB SQL syntax in the expression tab.

http://support.sas.com/documentation/cdl/en/etlug/65807/HTML/default/viewer.htm#n0o4rbvvosnwran10wcv... 

 

 

Aidan
Quartz | Level 8
Thank you Patrick, I will test a few bits and let you know how it goes.

Much appreciated

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 950 views
  • 1 like
  • 2 in conversation