IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL ERROR: DUPLICATE NAME EXISTS IN CATALOG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhoja

New User


Joined: 31 Jan 2006
Posts: 49

PostPosted: Fri Jun 08, 2007 1:24 pm
Reply with quote

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
View user's profile Send private message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Fri Jun 08, 2007 1:39 pm
Reply with quote

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
View user's profile Send private message
bhoja

New User


Joined: 31 Jan 2006
Posts: 49

PostPosted: Fri Jun 08, 2007 1:59 pm
Reply with quote

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
View user's profile Send private message
bhoja

New User


Joined: 31 Jan 2006
Posts: 49

PostPosted: Fri Jun 08, 2007 2:12 pm
Reply with quote

Hi,
is there any difference between
DISP=(NEW,CATLG,DELETE) AND DISP=(,CATLG,DELETE)

Raj
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 08, 2007 2:14 pm
Reply with quote

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
View user's profile Send private message
bhoja

New User


Joined: 31 Jan 2006
Posts: 49

PostPosted: Fri Jun 08, 2007 3:32 pm
Reply with quote

Thank you very much

Raj
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 08, 2007 6:06 pm
Reply with quote

You're welcome icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top