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

JES2/3, JCL, utilities.
Post Reply
Manoj Verma
New Member
Posts: 6
Joined: Mon Jun 23, 2014 3:47 pm

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

Post 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?
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

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

Post 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.
Manoj Verma
New Member
Posts: 6
Joined: Mon Jun 23, 2014 3:47 pm

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

Post 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!!
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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.
User avatar
Anuj Dhawan
Founder
Posts: 2799
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

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

Post 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.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Manoj Verma
New Member
Posts: 6
Joined: Mon Jun 23, 2014 3:47 pm

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

Post 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.

:) :)
User avatar
Anuj Dhawan
Founder
Posts: 2799
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

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

Post by Anuj Dhawan »

You're welcome!

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

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”