Posted: Tue Jul 15, 2008 6:08 am Post subject: Referring to GDG file name passed from PARM
Hi,
I am trying to make a generic job which will create a GDG base and the next file version. I wish to pass GDG file through parm while creating both GDG base using IDCAMS and Next version using IEBGENER.
As a work around, i tried creating a PASS file with the name same as that of GDG base to be created. This file will not have any space allocated for it. Then use the DD name for file in IDCAMS instream command and create GDG.
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
Posted: Tue Jul 15, 2008 6:29 am Post subject:
Why do you want to delete the GDG base and redefine it every time ?
If you are hoping to use the GDGMOD1 DD name as a reference to be used by the IDCAMS statements, then it will not work, which probably explains the RACF error that you get, as there is probably no profile for resource GDGMOD1.
To be honest, I'm not sure that the delete would work if there were any generations of the GDG in existence. You would probably need to have the FORCE and/or PURGE parameters, and also the authority to use them.
You could use REXX as an easy way
//REXXSTEP EXEC PGM=IKJEFT01,PARM='gdg base name'
To do the following
a) Check to see if the base already exists
b) Act accordingly if (a) = Y
c) Define the GDG base
d) Define the G0001V00 dataset
Gentle hint
Quote:
I am trying to make a generic job which will create a GDG base and the next file version.
I believe that the term you really wanted to use was generation rather than version _________________ If it's true that we are here to help others,
then what exactly are the others here for ?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum