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
 

 

Finding the Bad record in a file which caused the abend

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

New User


Joined: 02 Jan 2008
Posts: 4
Location: bang

PostPosted: Thu Jan 03, 2008 9:04 pm    Post subject: Finding the Bad record in a file which caused the abend
Reply with quote

Hello All,

Can any one please tell me how to find the bad record in a file, which is the cause for the job to abend. I want a solution ,something like i can find it in the abend aid.

Something like a the record number or something displayed in abendaid , with which i can strip off and rerun the job.

Yours help is greatly appreciated.

Thanks in advance,
Harikiran
Back to top
View user's profile Send private message

socker_dad

Active User


Joined: 05 Dec 2006
Posts: 147
Location: Columbia, MO

PostPosted: Fri Jan 04, 2008 1:08 am    Post subject: Reply to: Finding the Bad record in a file which caused the
Reply with quote

Well.......

No such utility I know exists. All you can do is hard work.

Was your job writing an output file? Then find the last good record written and start from there on your input file.

Was it an master file update program? Unless you are keeping some sort of program-internal checkpoints, you're screwed.

Was it a DB2 application with commit and rollback logic? Then you have other diagnosis opportunities.

Alas, all of these require effort on your part.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Fri Jan 04, 2008 1:39 am    Post subject:
Reply with quote

Should you be creating a corresponding output file (could be print), note that if it is not single-buffered, then the last record written will not correspond to the last input record properly processed.

Soccer's last point is important to many quesitons posed on this website - sometimes you must do it yourself. Study the program well enough to know where to put in some tracing. If you trace conditionally, then you can turn it off by setting the condition variable and leave the trace code in the program.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jan 04, 2008 2:04 am    Post subject:
Reply with quote

I always put read/write counters in my pgms for this and other reasons. Though I display them at EOJ, at abend the cntrs cotain the rec cnts at that time.

If you don't know how to find them in a dump, put "cntrs*start"/"cntrs*end" literals before and after them in WS.
Back to top
View user's profile Send private message
rakesh17684

New User


Joined: 08 Oct 2006
Posts: 60
Location: San Diego

PostPosted: Tue Jan 08, 2008 3:46 pm    Post subject:
Reply with quote

Get the records into an Excel sheet and try analysing with the sheet or u can try out to get that records using some file processing lang( like easytrieve,etc.,.)
Hope it helps
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Tue Jan 08, 2008 6:11 pm    Post subject:
Reply with quote

Excel can't handle most files. It only holds 65000 rows. Why move the data to a PC when there are similar tools you can use on the mainframe?
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Tue Jan 08, 2008 6:25 pm    Post subject:
Reply with quote

I believe that Vista Excel allows at least double the 65K rows, but the point is the same - this is not a "dump to Excel" solution.

Jack - I like your approach - great idea.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jan 09, 2008 3:51 am    Post subject:
Reply with quote

Thanx Phil. icon_smile.gif
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Jan 09, 2008 4:50 am    Post subject:
Reply with quote

Someone at our site wrote an Eztrieve that runs through a file checking for bad lengths.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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