|
View previous topic :: View next topic
|
| Author |
Message |
bhoja
New User
Joined: 31 Jan 2006 Posts: 49
|
|
|
|
HI,
Any one help me,
//UNLD001 EXEC PGM=IKJEFT01,COND=(4,LT)
//STEPLIB DD DSN=DB2C.RUNLIB.LOAD,DISP=SHR
//SYSTSIN DD *
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSIN DD DSN=JJC.SUPPORT.UTILITY.PARMS(VCCP),DISP=SHR
//SYSPUNCH DD DUMMY
//SYSREC00 DD DSN=JLC.DRYUNLD.P0.BEFORE,DISP=(,CATLG,DELETE),
// UNIT=DASD,SPACE=(CYL,(100,50),RLSE)
it was failed in this step first time due to some reason.After correcting I restarted the job from step
UNLD001, but it is failed with JCL error "IEF344I JOP32D4P UNLD001 SYSREC00 - ALLOCATION FAILED DUE TO DATA FACILITY
SYSTEM ERROR
IGD17101I DATA SET JLC.DRYUNLD.P0.BEFORE
NOT DEFINED BECAUSE DUPLICATE NAME EXISTS IN CATALOG"
But I have given the disposition is (,catlg,delete) means the data set was deleted at the time of failure.
But I dont know why it is telling duplicate name exists in catalog.
Could anyone help me in this regard |
|
| Back to top |
|
 |
rz061m
New User

Joined: 03 Mar 2006 Posts: 48 Location: Chennai
|
|
|
|
hi,
The abend is due to the existence of the, to be newly created file. Delete the file and re-run the job it will rin without any fail.
The reason it did not get deleted even by giving the
DISP=(,CATLG,DELETE) is that the job actually did not start running. Before running any job the system does an JSCAN and in this case it found the file to be exisiting when actually it should not be.
Thanks,
Karthik. P |
|
| Back to top |
|
 |
bhoja
New User
Joined: 31 Jan 2006 Posts: 49
|
|
|
|
Karthik,
That's true, what my doubt is why the data set not deleted, eventhough I have given the disposition
is (,catlg,delete). It means if the job abends, the data set should have to delete it right?
Then next time why it is showing JCL error.
Raj |
|
| Back to top |
|
 |
bhoja
New User
Joined: 31 Jan 2006 Posts: 49
|
|
|
|
Hi,
is there any difference between
DISP=(NEW,CATLG,DELETE) AND DISP=(,CATLG,DELETE)
Raj |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
If the original job ended with a non-zero return code, that is not an abend. Unsuccessful completion of a job step may not mean an abend.
If the job/step issues a controlled termination, this will not use the 3rd disp parameter. In these cases, the file must be deleted before the restart (or the jcl must be modified to always make sure the file is not left over from some prior run). An IEFBR14 before the step that creates the file can bake sure it is always "gone" by using DISP=(MOD,DELETE,DELETE) and SPACE=(TRK,0). |
|
| Back to top |
|
 |
bhoja
New User
Joined: 31 Jan 2006 Posts: 49
|
|
|
|
Thank you very much
Raj |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome  |
|
| Back to top |
|
 |
|
|