View previous topic :: View next topic
|
Author |
Message |
Suceender Kumar
New User
Joined: 10 Jan 2008 Posts: 29 Location: Chennai, India
|
|
|
|
Hi All,
I want to replace exact GDG version name in my JCL as below.
//EMPTYCHK EXEC PGM=FILEAID
//SYSOUT DD SYSOUT=*
//DD01 DD DSN=XXXXX.YYYYY(+0),DISP=SHR
//*
//DD01O DD DUMMY
//*
//SYSIN DD *
$$DD01 COPY OUT=1
/*
//SAMPLEPG EXEC PGM=ABC
//SYSOUT DD SYSOUT=*
//INFILE DD DSN=DSN=XXXXX.YYYYY.G0001V00,DISP=SHR <---- Full GDG name
//SYSIN DD DUMMY
This should be done through JCL. Can any one please help me? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
No, I do not believe that you do want to use the exact GDG version. You probably want to use the absolute generation.
When talking about GDS it is important to use the correct terminology, as both version and generation are both valid in terms of a GDS.
It is a well known fact that only one version of a GDS may exist at any one time, however, multiple generations may exist together.
Please learn and use the correct terminology when posting, as using the wrong term can cause confusion and possibly delay a resolution to your problem
Maybe if you explain why you want to do this, then maybe someone will be better able to help. |
|
Back to top |
|
|
Suceender Kumar
New User
Joined: 10 Jan 2008 Posts: 29 Location: Chennai, India
|
|
|
|
Pardon me expat. I mean absolute generation here. we are receiving files from third party where they could send 2 files at a time. Our job is a dataset trigger hence 2 instance will be in queue with the latest generation only. Previous generation is omitted when we recieve 2 files. Hence i want to repalce with absolute generation in my JCL. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Unfortunately another reason NOT to use a GDS as a trigger file.
You could use the GDG base name to process and delete all generations in one hit with a last step to create an empty +1 generation so that subsequent processes do not fail JCL error.
Use a defined dataset name for the first trigger and a different dataset name for the second trigger.
There is the option of using a program to list the generations and to keep an audit trail of processed generations so that they are not processed twice. That will need to be developed and tested in house.
These are processes that need to be carefully analysed before being put in place. Consultations with the customer to know the possibilities that may occur. When you know what may happen you are better placed to deal with them with a minimum of manual intervention. |
|
Back to top |
|
|
Suceender Kumar
New User
Joined: 10 Jan 2008 Posts: 29 Location: Chennai, India
|
|
|
|
Thanks expat !! That was helpful! |
|
Back to top |
|
|
|