Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How can we find bad data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
suresh111

New User


Joined: 14 Feb 2005
Posts: 17

PostPosted: Wed Jun 10, 2009 6:55 pm    Post subject: How can we find bad data
Reply with quote

Hi All,
I have a quick question.
I have large data in a file and I would like to find all bad records (caused by S0C7) how can i find them? please let me know what are the different ways available to do that.

Thanks,
Suresh
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


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

PostPosted: Wed Jun 10, 2009 7:00 pm    Post subject:
Reply with quote

S0C7 is caused by invalid data in numeric fields that is being used for arithmetic. These fields could be DISPLAY or PACKED-DECIMAL -- no way of knowing for sure. You have a couple of options:
1. write a validation program that checks every numeric field to contain numeric values, or
2. update your application program to verify every numeric field contains a valid value before using it.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Jun 10, 2009 11:44 pm    Post subject:
Reply with quote

Perhaps the VERIFY operator of DFSORT's ICETOOL would help. For details, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA30/6.16?DT=20080528171007
Back to top
View user's profile Send private message
suresh111

New User


Joined: 14 Feb 2005
Posts: 17

PostPosted: Thu Jun 11, 2009 11:22 am    Post subject:
Reply with quote

Thanks for the solution.
Back to top
View user's profile Send private message
ravidhiman

New User


Joined: 09 Oct 2006
Posts: 23
Location: London, UK

PostPosted: Wed Jul 15, 2009 3:13 pm    Post subject:
Reply with quote

Hi All,

Suppose a COBOL program is using an input file containing 100000 records.
The program is reading a data from the file and after some validation it is updating another VSAM file.

Some time because of bad data (incorrect format), in input file, program abends.

Is there a way to identify the last record (from input file) processed or the record which cause abend?

We don’t want to code display verb in the COBOL program.

Is there any way of finding this by looking into system dump? If there is way, could any body please describe step by step process to find the last record process or the record which abended?

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

Global Moderator


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

PostPosted: Wed Jul 15, 2009 4:54 pm    Post subject:
Reply with quote

Assuming it is a system dump, find the file section and look at the buffer for the particular file of interest. Since every dump is somewhat different, there's no canned procedure to follow -- you have to actually learn how to read the hexadecimal data, understand what the dump is telling you, and go from there.
Back to top
View user's profile Send private message
vikramsreddy

New User


Joined: 03 Sep 2006
Posts: 7
Location: Chicago, USA

PostPosted: Fri Jul 24, 2009 3:46 am    Post subject: Use File-Aid or Insync
Reply with quote

Looks like this was posted super long back. Here is another solution which can be used with INSYNC/FILE-AID:

Assuming that you have the copybook and know the field name which has invalid data, You could use the selection criteria with
Field-Name NV 0
where NV stands for not-valid on File-aid or Insync.

This will help you find all records with invalid data.

Hope this helps!!
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us