yuvrajdutta
New User
Joined: 13 Jul 2009 Posts: 40 Location: India
|
|
|
|
Hello Guys... phewwwww.... at last i managed to recreate the GDGs on the remote system.
i used the following inputs to the program
Code: |
//SYSIN DD *
RESTORE -
CATALOG -
DATASET( -
INCLUDE(**) -
) -
INDDNAME(DD0) -
RENAMEUNC( -
(I051029.JAGA.TEST.GDGBASE.*, -
I051029.JAGA.TEST2.GDGBASE.*) -
) -
REPLACEUNC -
TGTGDS(ACTIVE)
/*
|
Seems like without a rename the GDG's wont get created.
Also i noticed something very peculiar.
Initially i had restored the GDG's w.r.t. the base I051029.JAGA.TEST1.GDGBASE it ran fine.
Then i deleted the base and tried to restore, it failed as the base was missing.
Code: |
//IDCAMS01 EXEC PGM=IDCAMS,REGION=768K
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE 'I051029.JAGA.TEST1.GDGBASE'
|
But then i recreated the base again and tried to restore but nothing got restored though the RC returned was 0.
Code: |
//DOITNOWW EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GENERATIONDATAGROUP -
(NAME(I051029.JAGA.TEST1.GDGBASE) -
NOEMPTY -
NOSCRATCH -
LIMIT(30))
/*
|
Can you'll please shed some light as to what may have happened w.r.t. the above scenario and moreover why should i always rename while restoring w.r.t. the scenario at the beginning??
Thanks a lot for your patience guys |
|