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

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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