View previous topic :: View next topic
|
Author |
Message |
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
Hello,
I am using like operand at the SORT programs if the input is Dataset,
Bu t ican't use like for tapes, and I have to type LRECL and RECFM info at the output.
Are the any way that to use like operant with the tape datasets.
thanks...
Code: |
/*
//SORTST1 EXEC PGM=ICEMAN
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=XXX.YYY.ZZZ,DISP=SHR,VOL=SER=AAAA
//SORTOUT DD DSN=XXX.YYY.ZZZ2,DISP=(,CATLG,DELETE),
// LIKE=XXX.YYY.ZZZ
//SYSIN DD *
OPTION COPY
OUTFIL STARTREC=100,SAMPLE=100
/*
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
Bu t ican't use like for tapes, and I have to type LRECL and RECFM info at the output. |
So much information, I don't know where to start.
Please explain why you can not use the LIKE parameter with tapes, including any error messages and codes issued by the failing job.
Have you read the "JCL reference" manual oh so easily accessible from the "IBM Manuals" button at the top of the page. What does it say in there about it.
Have you considered using a referback via the DCB= parameter instead ? |
|
Back to top |
|
|
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
Hi Expat,
error is like that;
Code: |
IEF344I REPROOS SORTST1 SORTOUT - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM ERROR
IGD17410I DATA SET REFERENCED BY LIKE= TAPEX.YYY.ZZZZ NOT ON A DASD VOLUME
IGD17409I FAILURE OCCURRED IN DATA SET PROPERTIES MERGE WHILE ATTEMPTING TO |
|
|
Back to top |
|
|
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
Hello,
I have found REFDD operand at the Manuals and it is worked like I want,
thanks.
The solution;
Code: |
/*
//SORTST1 EXEC PGM=ICEMAN
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=TAPEX.YYY.ZZZ,DISP=SHR,VOL=SER=AAAA
//SORTOUT DD DSN=XXX.YYY.ZZZ2,DISP=(,CATLG,DELETE),
// REFDD=*.SORTIN
//SYSIN DD *
OPTION COPY
OUTFIL STARTREC=100,SAMPLE=100
/* |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And thank you for posting the solution which may benefit others |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
What benefit does doing this provide? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
From the error description:
Code: |
LIKE= TAPEX.YYY.ZZZZ |
nowhere in the original jcl for the sort step is TAPEX.YYY.ZZZZ,
yet the solution is REFDD=*.SORTIN which is TAPEX.YYY.ZZZ.
yet again, problem exists because poster can not type accurately.
attention to detail....................................... |
|
Back to top |
|
|
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 70 Location: Turkey
|
|
|
|
You are very meticulous dbzTHEdinosauer thanks,
but the solition code is consistent in itself, which is the improtant point is this I think. |
|
Back to top |
|
|
|