Hi
I am planning to execute oracle sql procedure with following date '01/JAN/1900' as input parameter in order to pull limited data.
Thanks for your help in advance
proc sql;
connect to oracle (user=&username password=&passwrd path=&dbname);
execute (execute PROC_CREATE_TABLE('01/JAN/1900')) by oracle;
disconnect from oracle;
quit;
Is thre a question in there somewhere, or would you just like the advice that its never a good idea to put data (date in this case) as table or column names?
Your code looks OK - it is very similar to this: http://support.sas.com/kb/18/350.html
But please note you can't return a result set from a stored procedure. You need to get the stored procedure to create a table or view that can then be queried separately.
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.
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.