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 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: 8593
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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