Reposting because I don't think it went the first time.
Don gets the big THANK YOU! REPLACEUNCONDITIONAL is not documented in
the DSS reference manual but it does just what I need. Hmm,
undocumented features. I thought only M$ did that ;-)
As for the others, thanks for the replies. Unfortunately I forgot to
make part of my request clear. There are about 20 packs we need to do
this with and we are trying to get this set up so the operators can run
it (or schedule it to run automatically) without intervention.
I now have a different question. I put in the replaceunconditional parm
and it runs successfully. However, if I replace a dataset with one of a
different size, I get the following:
ADR442I (001)-PREDS(02), DATA SET IDMS.PROD.JCL PREALLOCATED WITH NEW
NAME IDMS.TRNG2.JCL, IN CATALOG CATALOG.DATABAS.UCAT, ON
VOLUME(S): SN0606
ADR390I (001)-PREDS(01), DATA SET IDMS.TRNG2.JCL WILL BE SCRATCHED FROM
SN0606 BECAUSE OF UNMATCHED SIZE. IT WILL BE REALLOCATED
ADR431I (001)-DYNA (02), DATA SET IDMS.TRNG2.JCL IN CATALOG
CATALOG.DATABAS.UCAT HAS BEEN DELETED
ADR395I (001)-NEWDS(01), DATA SET IDMS.PROD.JCL ALLOCATED WITH NEWNAME
IDMS.TRNG2.JCL, ON VOLUME(S): SN0606
ADR385E (001)-CATLG(01), CATALOG FAILED FOR IDMS.TRNG2.JCL ON
SN0606,08-08
ADR435E (001)-CNVSM(01), DATA SET IDMS.TRNG2.JCL WAS NOT CATALOGED
Is it just my imagination, or should DFSMSdss be smart enough to know
that it scratched the dataset without removing the catalog entry so it
shouldn't complain when it allocates the dataset. It tried to catalog
the dataset even though it was already cataloged. Yes I have CATalog in
my DFSMSdss job step because I need to pick up any new datasets that may
have been added to the source volume.
I know everything is OK with the datasets being copied, but a RC=8 on
the job will trigger an automatic call by the operators at 2:00 AM. Not
something I relish.
Rex
In your DSS copy job, use REPLACEUNCONDITIONAL.
Don Imbriale
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html