Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL ERROR: DUPLICATE NAME EXISTS IN CATALOG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL ERROR: DUPLICATE NAME EXISTS IN CATALOG
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    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Jun 08, 2007 2:14 pm    Post subject:
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    Post subject:
Reply with quote

Thank you very much

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

Site Director


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

PostPosted: Fri Jun 08, 2007 6:06 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us