View previous topic :: View next topic
Author
Message
rickyc.mathew New User Joined: 06 Mar 2008Posts: 30 Location: kottayam
Hi,
My JCL id failing when I am UNIT=AFF parameter to a newly created dataset.It is showing an open ,close error with a file status code 90.
If I am submitting the job with out the UNIT=AFF parameter it is going through fine.Could any one help me to resolve the issue.
Thanks,
Ricchi
Back to top
gcicchet Senior Member Joined: 28 Jul 2006Posts: 1702 Location: Australia
Hi,
please show the JCL. Are you AFFying an output DD to an input DD ?
Gerry
Back to top
dick scherrer Moderator Emeritus Joined: 23 Nov 2006Posts: 19244 Location: Inside the Matrix
Hello,
Quote:
Are you AFFying an output DD to an input DD ?
When running a large sort where the data is on tape, this can save an extra drive allocation when SORTIN and SORTOUT are AFFed.
As Gerry requested - please show the jcl.
Also, mention how the files are used (for example, sometimes a file is written and then read which may not be seen from the jcl alone).
Back to top
rickyc.mathew New User Joined: 06 Mar 2008Posts: 30 Location: kottayam
hi,
Please find the jcl....
//STEP03 EXEC PGM=PGMNAME,PARM='TRANSACT',
// DYNAMNBR=20,REGION=8000K
//STEPLIB DD DSN=PKG.DBATTACH.R2.LOAD,DISP=SHR
//SYSTSIN DD DSN=PROCDATA(fffl2),DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSABOUT DD SYSOUT=*
//SYSDBOUT DD SYSOUT=*
//SYSIN DD DSN=PROCDATA(xxxxx012),DISP=SHR
//DBACHKPT DD DSN=CHKPT FILE,
// DISP=SHR
//DD1 DD DSN=DATASET-NAME,DISP=SHR
//DD2 DD DUMMY
//DD14 DD DISP=(,CATLG,KEEP),
// UNIT=ITAPE,
// VOL=(,,,99),
// DCB=(RECFM=FB,LRECL=941,BLKSIZE=0,
// TRTCH=COMP),
// DSN=DATASET-NAME
//DD3 DD DISP=(,CATLG,KEEP),UNIT=AFF=DD14
// VOL=(,,,99),
// DCB=(CSRP.MODEL,RECFM=FB,LRECL=109,BLKSIZE=0),
// DSN=DATASET-NAME
//DD4 DD DISP=(NEW,CATLG,KEEP),
// UNIT=AFF=DD14,VOL=(,,,99),
// DCB=(CSRP.MODEL,RECFM=FB,LRECL=110,BLKSIZE=0),
// DSN=DATASET-NAME
//DD7 DD DISP=(NEW,CATLG,KEEP),
// UNIT=ITAPE,VOL=(,,,99),
// DCB=(CSRP.MODEL,RECFM=FB,LRECL=295,BLKSIZE=0),
// DSN=DATASET-NAME
//DD10 DD DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(50,0),RLSE),
// DCB=(CSRP.MODEL,RECFM=FB,LRECL=80,BLKSIZE=0),
// DSN=DATASET-NAME
//DD11 DD DISP=(,CATLG,DELETE),
// UNIT=ITAPE,VOL=(,,,99),
// DCB=(CSRP.MODEL,RECFM=FB,LRECL=130,BLKSIZE=0),
// DSN=DATASET-NAME
//DD8 DD DUMMY
//DD9 DD DSN=DATASET-NAME,DISP=SHR
//DD6 DD DSN=DATASET-NAME,DISP=SHR
//DD12 DD DSN=DATASET-NAME,DISP=SHR
//DD13 DD DSN=DATASET-NAME,DISP=SHR
The files are used as output files.....
Thanks,
Ricchi.
Back to top
gcicchet Senior Member Joined: 28 Jul 2006Posts: 1702 Location: Australia
Hi Dick,
I agree with
Quote:
When running a large sort where the data is on tape, this can save an extra drive allocation when SORTIN and SORTOUT are AFFed.
but I was I trying to establish is whether it's AFFying to an already opened dataset.
Even when the SORT PGM is invoked and the copy statement is used, you cannot AFF SORTOUT to SORTIN.
Gerry
Back to top
dick scherrer Moderator Emeritus Joined: 23 Nov 2006Posts: 19244 Location: Inside the Matrix
Hello,
Quote:
The files are used as output files.....
Ok, but are any of the files in the AFF groupings open at the same time?
You cannot have 2 dcb's open on the same tape device at the same time.
Back to top
Please enable JavaScript!