IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ON ERROR handling


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
soundarr

New User


Joined: 17 Jan 2008
Posts: 25
Location: Chennai

PostPosted: Wed May 11, 2016 3:37 am
Reply with quote

Dear All,

I try to handle zero divide exception in PL1 and continue with my program logic. Below error handling displays "***0000000***" but then continues to process the statements in ON ERROR and abends the program with SOCB. Can you please suggest how to get back to process the statement after the DIVIDE statement.

Code:
   ON ZERODIVIDE
       PUT SKIP(2) EDIT('***0000000***')(A);
   ON ERROR BEGIN;
      PUT SKIP(1) EDIT('ERROR BEGIN: ')(A);       
      :


Thanks
Soundar
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2577
Location: NYC,USA

PostPosted: Wed May 11, 2016 4:02 am
Reply with quote

Do you need 'go to' ?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed May 11, 2016 1:50 pm
Reply with quote

He does indeed.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Secondary index error while loading d... IMS DB/DC 2
No new posts Error 0C1 Reason Code 1 with branch i... PL/I & Assembler 3
No new posts Getting error while xped JCL & VSAM 10
No new posts can someone please help me in finding... IBM Tools 9
No new posts SYNCSORT Error - CONTROL FIELD BEYOND... SYNCSORT 10
Search our Forums:

Back to Top