IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to find the corrupted record in a vsam file


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Apr 23, 2007 4:33 pm
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: 3156
Location: Tucson AZ

PostPosted: Mon Apr 23, 2007 4:49 pm
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

Moderator Emeritus


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

PostPosted: Mon Apr 23, 2007 10:32 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top