View previous topic :: View next topic
|
Author |
Message |
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
We have a process that copies (using IDCAMS) all generations of a GDG to a sequential file.
It deletes all generations as part of the process, using:
DISP=(OLD,DELETE,KEEP)
If there are no generations to process, we get a JCL error:
Code: |
IEF212I ACPBINDF COPYCARD DD1 - DATA SET NOT FOUND
IEF272I ACPBINDF COPYCARD - STEP WAS NOT EXECUTED.
|
To get around this we create an empty (+1) generation in the prior step to ensure at least one generation exists.
My question: is there another way to handle this situation? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What you have done is done the same way many places use to make sure there is at least one generation to process. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I'll go with Dick on that one. It's the way that I have always handled that situation. |
|
Back to top |
|
|
|