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 failing when UNIT=AFF parameter is added...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL failing when UNIT=AFF parameter is added...
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: 1703
Location: Australia

PostPosted: Wed Mar 11, 2009 9:39 am    Post subject:
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

Site Director


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

PostPosted: Wed Mar 11, 2009 9:59 am    Post subject:
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    Post subject: Reply to: JCL failing when UNIT=AFF parameter is added...
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: 1703
Location: Australia

PostPosted: Wed Mar 11, 2009 10:15 am    Post subject:
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

Site Director


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

PostPosted: Wed Mar 11, 2009 12:17 pm    Post subject:
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    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 DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts TSO Logon Failing - Acount Not matching SLNewton TSO/ISPF 1 Thu Aug 25, 2016 9:37 pm


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