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
 

 

To bypass an abend

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
smadiraju

New User


Joined: 19 Dec 2008
Posts: 3
Location: Chennai

PostPosted: Tue Aug 24, 2010 11:36 am    Post subject: To bypass an abend
Reply with quote

One of the program is abending very frquently.
I want to include a logic in the program such that it will write the error record into a file and continue with processing the next record.
Can anyone help me in getting a psuedo code to do such a change in PL1.
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Aug 24, 2010 3:32 pm    Post subject: Reply to: To bypass an abend
Reply with quote

By the time you're done coding this "bypass" endeavor, you could have debugged the problem.

This error should not be "masked" with a band aid. icon_eek.gif

You're going to have to fix it anyway, correct?

Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8056
Location: East Dubuque, Illinois, USA

PostPosted: Tue Aug 24, 2010 3:56 pm    Post subject:
Reply with quote

You have not provided anything that could let us help you. For example, what abend is the program getting? Handling a SB37 abend is quite different from handling a S0C7 abend.

Besides, as Bill said, it is a bad idea to mask abends -- they are occurring for a reason and you need to identify the underlying reason and fix it, not just change the code to ignore them.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Aug 24, 2010 3:59 pm    Post subject:
Reply with quote

I agree with Bill.

In any case, if you're to cater for all possible abends, how can you be sure you've tested every case?

How do you know that it's a record that's causing the abend? It could be that the program logic is flawed.

Garry.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Tue Aug 24, 2010 5:19 pm    Post subject:
Reply with quote

smadiraju,

as you can imagine by now, you have not explained your problem very well.
actually, at all.

but I will take a wild guess.

you are encountering a S0C7.

you should include a process in you program,
that validates every field as to the datatype and acceptable values.
when you have a record which contains a field that violates this 'plausibility' proofing,
then exclude the record from the rest of the process and report the record.

I would suggest creating a new module,
which would run before the module that is abending,
and perform your exclusion process there,
and only output records containing 'good field values'.

this new module could even be a SORT utility
which would perform a copy, excluding (omit) records that violate your rules.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts S213-14 ABEND explantion Apurva Mehta JCL & VSAM 5 Thu Jul 07, 2016 10:56 pm


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