Corrupted Flat file



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Corrupted Flat file

Postby diptisaini » Tue Oct 11, 2011 2:24 pm

Hi,

I just need to know how we can check whether the file is corrupted or not(Flat file)?

Second thing under which scenario our file be corrupted.
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Corrupted Flat file

Postby enrico-sorichetti » Tue Oct 11, 2011 2:47 pm

if You want good answers, learn to ask good questions
define corrupted
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Corrupted Flat file

Postby Frank Yaeger » Tue Oct 11, 2011 11:38 pm

We have no idea what YOU mean by "corrupted". You need to explain what you're trying to do. What would indicate that the file is corrupted?
Do you mean unreadable? If so, how was the file created and what product do you use to read it? Provide more details.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times

Re: Corrupted Flat file

Postby steve-myers » Tue Oct 11, 2011 11:53 pm

As enrico-sorichetti says, you must define "corrupted."

In z/OS type systems, there are two ways a "flat" dataset on disk can be corrupted.
  • An unauthorized user altered the dataset due to inappropriate access permissions. Your best bet fir this problem is to analyze SMF data.
  • There is a problem with the dataset extent maps. This is very rare, and I do not know a good tool in the public domain to detect this problem. More often you see space that is not assigned to a dataset or to free space. Your storage management group should analyze and correct this problem.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Corrupted Flat file

Postby steve-myers » Wed Oct 12, 2011 12:07 am

Oh yes, there is a third way. Am authorized user (which usually mean you) wrote invalid data to the dataset.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Corrupted Flat file

Postby BillyBoyo » Wed Oct 12, 2011 3:34 am

enrico's found another possibility elsewhere. A file edited with ISPF and saved with PACK ON would probably count as corrupt if treated outside ISPF as a flat file in an application program.

For an ordinary flat file, I don't think there is a utility to check its internal integrity. The format is so simple, I guess, if you can read it it is not corrupt, if you can't it is. Never had a corrupt PS myself, or even heard of one.

Any proprietary format file might appear "corrupt" if it has its own internal structure and you try to read it.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Corrupted Flat file

Postby steve-myers » Wed Oct 12, 2011 5:25 am

Billyboyo is correct: a dataset saved with the ISPF PACK option would certainly appear to be "corrupt" to any other program. About 10 years ago I reverse engineered the ISPF pack option; it's just a variation on the RLE compression method.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post