Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

On exception in cobol call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Amit Goswami

New User


Joined: 06 Jul 2005
Posts: 11
Location: India

PostPosted: Thu Apr 03, 2008 3:29 pm    Post subject: On exception in cobol call
Reply with quote

Hi,

I am using following code

CALL pgm-1 USING VAR-1
ON EXCEPTION SET exception-flag to true
END-CALL.

IF exception-flag
<trap the System-code or exception-code>
END-IF.

How can i trap exception conditon or cause there
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Thu Apr 03, 2008 3:55 pm    Post subject:
Reply with quote

If it's COBOL/400, then
http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.langref.doc/evfeb4ls81.htm
Back to top
View user's profile Send private message
tushar.zibbu

New User


Joined: 08 Mar 2007
Posts: 6
Location: Assam

PostPosted: Thu Apr 03, 2008 4:13 pm    Post subject:
Reply with quote

Hi Amit,
Has your problem been resolved?
Back to top
View user's profile Send private message
Amit Goswami

New User


Joined: 06 Jul 2005
Posts: 11
Location: India

PostPosted: Thu Apr 03, 2008 4:21 pm    Post subject: Reply to: On exception in cobol call
Reply with quote

Not yet..

My problem is to return actual cause of exception.
Suppose it is due to SB37, theb how can i send back.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Thu Apr 03, 2008 7:20 pm    Post subject:
Reply with quote

I don't think you will get an SB37 from a call....
The manual specifies that an exception condition occurs when the called subprogram cannot be made available, that appears to be the only condition......
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Apr 04, 2008 12:26 am    Post subject:
Reply with quote

Hello,

Quote:
Suppose it is due to SB37, theb how can i send back.
I suspect that you cannot.

The process will have abended and there will be no "sending back".
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us