Posted: Tue Aug 15, 2006 8:54 am Post subject: (NEW,CATLG,DELETE) incase of User Abend
Hi,
As far as I know DISP=(NEW,CATLG,DELETE) means the file will be deleted incase of an abend. But in my case when a User Abend occurs the file was not deleted (basically its a GDG version).
Is there any special processing for USER Abend case ? Someone please clarify this.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue Aug 15, 2006 9:06 am Post subject:
Dasarij,
The GDG version WILL be deleted if the job abended. If the Job issues a user return code and does not abend then the GDG version will be retained. To test it run the following job and see the JESYSMSG. It would say that the GDG is allocated and later deleted.
Hello,
I have a JCL with 2 steps in it. In my first step i am incrementing the version of my GDG. The next step is a program call where i am calling some fictitious program. In case the second step abends should the JCL be incrementing version of GDG?
Though i have read the GDG version does not get incremented until job completes successfully but for some reason GDG version gets incremented even though step 2 abended.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue Jul 17, 2007 6:13 am Post subject:
Quote:
I have a JCL with 2 steps in it. In my first step i am incrementing the version of my GDG. The next step is a program call where i am calling some fictitious program. In case the second step abends should the JCL be incrementing version of GDG?
mrinalsolanki,
The moment the job abends in step2 marks the end of the job completion for step1 as step1 execueted successfully. so the GDG is catalogued. So if you are restarting the job in step2 then you need to refer to 0 gen of the gdg
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Tue Jul 17, 2007 6:21 am Post subject:
I believe that if the STEP creating the GDG ABnormally ENDS or terminates, the DISP parameters of NEW, CATLG, DELETE (as Kolusu has said) will take effect.
But those DISP parms are for a STEP, not the JOB. So, if you create a DS in one step and it terminates normally, the DISP parm of CATLG takes effect. IF you ABEND in a subsequent step that does not allocate the DS the DS stays.
Other scenarios exist:
If you were to code DISP=(OLD,DELETE,KEEP) in a subsequent step that was to copy the previously created DS and then delete it: If the copy step abends, the DS would still exist for a restart. If the copy step terminates normally, then the DS would be copied and then deleted.
You have to plan for restart as well as successful conclusion and continued processing.
Sorry, Kolusu, I noticed that you already answered and maybe I am providing too much info. _________________ Dick Brenholtz
American living in Varel, Germany
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