|
|
| Author |
Message |
Neil Culleton
New User
Joined: 16 Jul 2008 Posts: 1 Location: Australia
|
|
|
|
For the next person who <blush> corrupts a dataset by writing to it using a wrong LRECL, the above solution works.
In my case i needed more DCB parms:
===================================
//COPY1 EXEC PGM=IEBGENER
//SYSUT1 DD *
DUMMY RECORD
/*
//SYSUT2 DD DISP=OLD,DSN=HLQ.XXX.YYY(DUMMY),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920)
===================================
Using just LRECL or just BLKSIZE was giving:
'IEB311I CONFLICTING DCB PARAMETERS' on the IEBGENER.
Cheers,
Neil. |
|
| Back to top |
|
 |
References
|
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 511 Location: work
|
|
|
|
| Quote: |
| if the Backup itself is corrupted, how can we repair that ? |
Some sites keep multiple generations of a dataset. For example, HSM has a GEN() parameter in the HRECOVER command, so you can recover not the most recent generation, but an older version. |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 654
|
|
|
|
Hi,
I'm surprised to hear how often PDS become corrupted, surely it warrants investigating the problem.
I remember having the occasional one and found that utilities like IEBGENER, IDCAMS, SORT and even REXX's causing problems, I found by creating temporary PDS's and using IEBCOPY to copy the member to the target library, problems seemed to disappear.
I don't remember corruptions being caused by IEBCOPY.
Now that's not to say I don't use these utilities to write directly into the target libraries, but I try to avoid it.
Gerry |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8653 Location: 221 B Baker St
|
|
|
|
Hi Gerry,
| Quote: |
| I'm surprised to hear how often PDS become corrupted, |
From what i've noticed (at least on this forum) it is often caused when people (who do not yet understand how things "work") use "their own" jcl to compile/link instead of the "standard" compile/link for their system. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1618 Location: germany
|
|
|
|
| or people writting rexx scripts to modify and don't bother creating and using a test (copy) pds first. |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 511 Location: work
|
|
|
|
| Instead of PDSs, I think people should use PDSEs. Functionality is the same. But the underlying organization is different. I think you can you avoid many of the problems that you might have with a PDS. |
|
| Back to top |
|
 |
|
|