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

JCL failing when UNIT=AFF parameter is added...


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

New User


Joined: 06 Mar 2008
Posts: 30
Location: kottayam

PostPosted: Wed Mar 11, 2009 9:36 am
Reply with quote

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

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Mar 11, 2009 9:39 am
Reply with quote

Hi,

please show the JCL. Are you AFFying an output DD to an input DD ?


Gerry
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: Wed Mar 11, 2009 9:59 am
Reply with quote

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

New User


Joined: 06 Mar 2008
Posts: 30
Location: kottayam

PostPosted: Wed Mar 11, 2009 10:03 am
Reply with quote

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

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Mar 11, 2009 10:15 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Wed Mar 11, 2009 12:17 pm
Reply with quote

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
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts SMF Record Date conversion failing CLIST & REXX 1
No new posts Writing the output file name from a p... JCL & VSAM 7
Search our Forums:

Back to Top