BookmarkSubscribeRSS Feed
hsoneji
Fluorite | Level 6

Need a way to call SAS stored process from a SQL statement. Ex.

 

CALL Library.StoredProc(Param in, Param in) returning a result set or

CALL Library.StoredProc(Param in, Param in, Param out, Param out)

 

 

3 REPLIES 3
LinusH
Tourmaline | Level 20
Actually I think it's possible but perhaps not straight forward. This link tells that you can refer output data to a Java API:
http://support.sas.com/documentation/cdl/en/stpug/62758/HTML/default/viewer.htm#n10xnc6v54swuon15omr...
But what is your application? What does the stored process do? Generally they output reports, not data.
Data never sleeps
hsoneji
Fluorite | Level 6

Here is my use case:

 

From Pega BPM 7.x I only have ability to talk SQL using SAS JDBC. There is a program in SAS that is needed for my business process.

 

1. Load data into a SAS dataset (Read documentation, so assumed this will work http://documentation.sas.com/?docsetId=jdbcref&docsetTarget=p1pbz82pw98h7rn14cn3o0dhfo78.htm&docsetV...)

This is done using standard INSERT/UPDATE SQL statements

 

2. Retrieve data from a SAS dataset (Tested, works as expected)

This is done using standard SELECT SQL statements 

 

3. Once data is loaded in the SAS dataset, I need to tell SAS to invoke a program to compute. (I don't know how to do this without having the ability to issue a CALL statement from within JDBC/SQL).

 

Please provide some ideas on how to accomplish invoking of a SAS stored process from outside of SAS.

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 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
  • 3 replies
  • 745 views
  • 0 likes
  • 3 in conversation