Page 1 of 1

Can we recover a PDS back once correupted - I/O error?

Posted: Mon Dec 15, 2014 2:29 pm
by Manoj Verma
Hi,

Stupidly, I gave a member from a PDS while running DSNUTILB to get the punch card. This has the PDS and now I'm getting I/O error reading data error message. This PDS is a JCL PDS library for many of small tools and jobs I need.

Can someone please advise on how canI solve this issue now?

Re: Can we recover a PDS back once correupted - I/O error?

Posted: Mon Dec 15, 2014 5:39 pm
by William Collins
If it was important, I assume you have a back-up?

Best to as your Technical Support, they will know what you have available to you. There may be an "image backup" of the disk it was on.

If that gets you nowhere, let us know.

Re: Can we recover a PDS back once correupted - I/O error?

Posted: Mon Dec 15, 2014 10:42 pm
by Manoj Verma
I've the back up but it's not up to the date so many recent members, which are more important, are not there.

I've asked the Support too but looks like it's too long as a process to get and more cumbersome for a user PDS!!

Re: Can we recover a PDS back once correupted - I/O error?

Posted: Mon Dec 15, 2014 11:38 pm
by Robert Sample
I've asked the Support too but looks like it's too long as a process to get and more cumbersome for a user PDS!!
The only other alternative you've identified on this forum is to proceed without some important members of the PDS. You need to determine whether to take the time your support group needs, or live without the members. Once a PDS has been corrupted, there's pretty much nothing that can be done to fix the problem -- a restore from backup is required to recover the PDS.

Regular backups of critical data is highly recommended, no matter where the critical data resides.

Re: Can we recover a PDS back once correupted - I/O error?

Posted: Tue Dec 16, 2014 9:12 am
by Anuj Dhawan
Hi,

I think there is a trick - try creating a new member in the corrupted PDS using IEBGENER. Specify the correct DCB and DISP=MOD on the DD card. Your code should look like this:

Code: Select all

//SYSUT2 DD DSN=CORRUPT.PDS(XXX),DISP=MOD,DCB=(LRECL=80,BLKSIZE=32000)

Assuming your PDS is of LRECL=80.

Re: Can we recover a PDS back once correupted - I/O error?

Posted: Tue Dec 16, 2014 10:55 pm
by Manoj Verma
Excellent Anuj, this did the trick! Great, you've saved me from a lot of grief!! I'm able to browse the PDS now.

:) :)

Re: Can we recover a PDS back once correupted - I/O error?

Posted: Thu Dec 18, 2014 10:53 am
by Anuj Dhawan
You're welcome!

a blind squirrel finds an acorn, once in a while, you know! :)