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
 

 

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: 8057
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: 8057
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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm


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