Log for Stored Procedure



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Log for Stored Procedure

Postby pulsar22 » Wed Oct 16, 2013 12:48 pm

Hi,

Is there any way by which we can create log for cobol stored procedure when called by external applications.
Help required.
pulsar22
 
Posts: 34
Joined: Mon Sep 09, 2013 12:39 pm
Has thanked: 14 times
Been thanked: 0 time

Re: Log for Stored Procedure

Postby dick scherrer » Wed Oct 16, 2013 7:35 pm

Hello,

Put code in the SP to record what you want . . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Log for Stored Procedure

Postby pulsar22 » Wed Oct 23, 2013 8:11 pm

this will return the message to the calling application....right?
But i don't want this.I need it like joblog is saved and we can see it later in case of failure.
pulsar22
 
Posts: 34
Joined: Mon Sep 09, 2013 12:39 pm
Has thanked: 14 times
Been thanked: 0 time

Re: Log for Stored Procedure

Postby Akatsukami » Wed Oct 23, 2013 8:19 pm

pulsar22 wrote:this will return the message to the calling application....right?

Only if you so return it; write it instead to a log data set or table.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post