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 to find the corrupted record in a vsam file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
suresh_gop1
Warnings : 1

New User


Joined: 23 May 2006
Posts: 18

PostPosted: Mon Apr 23, 2007 4:30 pm    Post subject: How to find the corrupted record in a vsam file
Reply with quote

Hi,

I have one question. If one VSAM file has 10000 records. one record has corrupted. How can we find the corrupted record
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8685
Location: Back in jolly old England

PostPosted: Mon Apr 23, 2007 4:33 pm    Post subject:
Reply with quote

In which way is the record corrupted ?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Apr 23, 2007 4:49 pm    Post subject: Re: how to find corrupted record vsam file
Reply with quote

suresh_gop1 wrote:
If one VSAM file has 10000 records. one record has corrupted. How can we find the corrupted record

Read record, if corrupted display "this one" else go to read record....
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Apr 23, 2007 10:32 pm    Post subject:
Reply with quote

Hello,

If you only have 10000 records, you might REPRO them into a qsam file and "sort out" the corrupt record (or use a COBOL program).

As was asked previously - what does corrupt mean to you? A bad value in one or more fields (i.e. not numeric)? An entire "junk" record? A key that should not exist?

The more complete your request, the better suggestions you will get.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts B059 PREMATURE END OF FILE mvmadhuvenkatesh CA Products 4 Tue Jun 19, 2018 10:50 am
No new posts Formating output file Niki DFSORT/ICETOOL 3 Fri Jun 15, 2018 3:27 pm
No new posts Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm
No new posts How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am

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