View previous topic :: View next topic
Author
Message
balakrishna reddy Active User Joined: 13 Jul 2007Posts: 128 Location: Guntur
Hi all,
I have one query regarding disp parameter.
I have a declaration like this:
Code:
//dd1 dd dsn=test.bala.file1,disp=(new,catlg,delete),
// dcb=(lrecl=80,recfm=f,blksize=400,dsorg=ps),
// unit=sysda,space=(trk,(10,15))
my query is the number of times i am trying to create the above file it is getting created successfully.
but what i expect is it should give error like file all ready exist.
can anybody explain me the reason behind this.
Back to top
expat Global Moderator Joined: 14 Mar 2007Posts: 8797 Location: Welsh Wales
Do you have a delete step prior to the create step ?
Is it created with NOT CTLG 2 somewhere in the JESYSMSG ?
Does your shop have an exit to scratch any pre-existing dataset that has DISP=NEW ?
Back to top
murmohk1 Senior Member Joined: 29 Jun 2006Posts: 1436 Location: Bangalore,India
In addition to expat's -
Is the job abending?
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
Or, are you using some step in your JCL, prior to this step, like this:
Code:
//STEP005 EXEC UCC11RMS,TYPRUN=F
Back to top
balakrishna reddy Active User Joined: 13 Jul 2007Posts: 128 Location: Guntur
hi all,
i have not used any steps like
Quote:
//STEP005 EXEC UCC11RMS,TYPRUN=F
i am not getting any abend to my jcl.my jcl is running successfully
when i am trying to create dataset using 3.2 option in ispf
it is showing like duplicate name for dataset.
Back to top
ksk Active User Joined: 08 Jun 2006Posts: 355 Location: New York
Hi,
As Expat mentioned, you might be using DELETE step priot to the creation step. Just check is this happening in your JCL.
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
Hi,
Then I would suggest you to show your JCL & the SYSOUT messages.
Back to top
balakrishna reddy Active User Joined: 13 Jul 2007Posts: 128 Location: Guntur
below is my jcl :
Code:
//STEP02 EXEC PGM=SORT
//SORTIN DD DSN=TEST.BALA.EXERCIS1,DISP=OLD
//SYSOUT DD SYSOUT=*
//SORTOF01 DD DSN=TEST.BALA.FILEA,
// DISP=(,CATLG,),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE)
//SORTOF02 DD DSN=TEST.BALA.FILEB,
// DISP=(,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE)
//SORTOF03 DD DSN=TEST.BALA.FILEC,
// DISP=(,CATLG,),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE)
//SYSIN DD *
OPTION COPY
OUTFIL FILES=01,INCLUDE=(46,2,CH,EQ,C'bs')
OUTFIL FILES=02,INCLUDE=(1,6,CH,EQ,C'sp')
OUTFIL FILES=03,INCLUDE=(1,6,CH,EQ,C'ap')
/*
//
in the jcl i am creating three files which are having some data in it,
but when i am doing some changes in the input file and trying to create
those three files with same name again they are getting created successfully and with updated data which i have changed in the input file.
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
Hi,
JCL looks ok, however, you could use DISP=SHR for SORTIN, if this is a stand alone JOB.
I usually use this type of code for my JOBs:
Code:
//JOBCARD
//STEP005 EXEC UCC11RMS,TYPRUN=F
//*
//STEP050 EXEC PGM=SORT,REGION=4096K
...
where STEP005 tells the OS to start a fresh run for this JOB. When tried the above JOB after commenting the //STEP005, there was a JCL error (JEM statistics) that SORTOUT already exist.
Can't guess what exactly happening at your end , we are missing something. Please show the SYSOUT messages as well.
Back to top
dick scherrer Moderator Emeritus Joined: 23 Nov 2006Posts: 19244 Location: Inside the Matrix
Hello,
If you use tso/ispf 3.4 and list the dataset as 'TEST.BALA.FILE*', what does the system return? 3 files or more?
Your posted step is 02. What other steps are in the job?
Please run your job 2 times back-to-back and post the sysout info from both jobs.
Back to top
Please enable JavaScript!