Page 1 of 1
Result set of a stored procedure
Posted: 26 Nov 2009 1:21
by RaviKiranCH
Hi All,
One quick question..
I have a batch file where in it executes a Stored Procedure.
Can we get the result of this Stored Procedure in SYSOUT...?
Thanks
Ravi
Posted: 26 Nov 2009 4:04
by gglau
Whatever written to STDOUT and STDERR will go into SYSOUT. Check your batch script and in the stored procedure if these two output channels have been redirected else where.
Posted: 27 Nov 2009 5:25
by RaviKiranCH
Hi,
Thanks for the inputs.
How do I check whether my STDOUT & STDERR have been redirected or not..?
Can you please make it clear with an Example.....
Posted: 01 Dec 2009 1:58
by baralem
if you are sendig the stored procedure output to a file you can use cat (unix) or type (windows) to append SP output to sysout.
regards
martin
Posted: 04 Dec 2009 10:47
by GrahamH
If you are on CONTROL-M EM 6.4.01 Fix Pack 2 or above, with CONTROL-M Server and Agent 6.3.01 Fix Pack 2 and above, you can use the new CONTROL-M for Databases feature. this allows you to run native SQL, SQL scripts and stored procedures against MS SQL, Oracle and DB2/UDB databases without the need for wrapper scripts, and can also capture your output into the CONTROL-M SYSOUT.
Regards.
Graham
Posted: 05 Aug 2011 7:19
by shazmani
Hi… that was great stuff..
sahiwal Boards Results 2014
Re: Result set of a stored procedure
Posted: 19 Mar 2015 8:56
by jacky0109
This was really some nice information for scheduler users. I am glad to read it here and thanks for sharing