BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
pavan1
Obsidian | Level 7

Hello Folks,

 

I want to pass Multiple parameters(say like 3, one of them should be a null value) to a Procedure that is stored in Oracle. I want to run this procedure through SAS 9.3.

 

I can pass single parameter using the below method

 

proc sql;

connect to oracle (user=userid password=password path=database_name);

execute (execute st_pr_name('parm')) by oracle;

disconnect from oracle;

quit;

 

However, i can't run the procedure with Multiple input Parameters. Can someone help me out with an example ?

 

Thanks,

Pavan

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

This isn't a SAS issue it is an Oracle syntax issue. A quick Google search suggests you use multiple parameters like this:

 

proc sql;
connect to oracle (user=userid password=password path=database_name);
execute (execute st_pr_name(parm1, parm2, parm3)) by oracle;
disconnect from oracle;
quit;

 

 

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

This isn't a SAS issue it is an Oracle syntax issue. A quick Google search suggests you use multiple parameters like this:

 

proc sql;
connect to oracle (user=userid password=password path=database_name);
execute (execute st_pr_name(parm1, parm2, parm3)) by oracle;
disconnect from oracle;
quit;

 

 

pavan1
Obsidian | Level 7
thank you so much SASKiwi, it worked very well

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 4016 views
  • 1 like
  • 2 in conversation