Invalid referback in DCB field



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Invalid referback in DCB field

Postby Gallium » Sat Nov 29, 2014 2:20 am

Say i have some JCL Code:

//SORTIN DD DSN=NEW.SPECIAL.DATA.SET,DISP=SHR
//SORTTEMP DD DSN=&&SORTTEMP,DCB=*.SET


When running the full job I get an error in that 2nd line that talks about an invalid referback. I cannot understand why I am getting it? * is a wildcard which can match anything and the .SET matches the end?
Gallium
 
Posts: 33
Joined: Tue Nov 25, 2014 10:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Invalid referback in DCB field

Postby enrico-sorichetti » Sat Nov 29, 2014 3:09 am

why not look Yourself at the JCL manuals ???
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Invalid referback in DCB field

Postby Gallium » Sat Nov 29, 2014 4:13 am

enrico-sorichetti wrote:why not look Yourself at the JCL manuals ???


I already have, that's why it doesn't make sense, based on what I've read it should work!
Gallium
 
Posts: 33
Joined: Tue Nov 25, 2014 10:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Invalid referback in DCB field

Postby BillyBoyo » Sat Nov 29, 2014 5:09 am

If SORT is writing to that DDname, you don't need any DCB information. SORT will provide it. Therefore it is best not to provide DCB information for output files from SORT/ICETOOL (you'll end up with two places to maintain the information, which is never good).

You'll have to post the full JCL and the messages produced. DCB is not required, but a couple of other things are.

* is not a wildcard in this context. What do you think it would do if it was?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Invalid referback in DCB field

Postby Gallium » Sat Nov 29, 2014 6:04 am

//JOB1 JOB
//SORT EXEC PGM=DFSORT                                   
//SYSOUT DD SYSOUT=*                                     
//SORTIN DD NEW.SPECIAL.DATA.SET,DISP=SHR
//SORTTEMP DD DSN=&&SORTTEMP,DCB=*.SET             
//SYSIN DD *
  INCLUDE...                                             


The error is:

5 IEF645I INVALID REFERBACK IN THE DCB FIELD 


Is this enough?
Gallium
 
Posts: 33
Joined: Tue Nov 25, 2014 10:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Invalid referback in DCB field

Postby steve-myers » Sat Nov 29, 2014 7:55 am

DCB=*.ddname in the same step, or DCB=*.step.ddname in another step. Where is the SET DD statement in your JCL?

The other thing about this is it refers to DCB data in the JCL. Something like this will work.
//SET       DD  DUMMY,DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//REALDD    DD  ...,DCB=*.SET


The * in *.ddname in not a "wild card." There are no wild cards in JCL. Period. End of story.

I very much doubt anyone now living understands the purpose of the * in *.ddname, except to indicate that the text string that follows is not a data set name or a DCB parameter keyword.

I think you would be better off following Billyboyo's advice.

And please do not lie to us when you said you read the JCL manual.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Invalid referback in DCB field

Postby Gallium » Sat Nov 29, 2014 8:49 am

steve-myers wrote:And please do not lie to us when you said you read the JCL manual.


Not cover to cover!
Gallium
 
Posts: 33
Joined: Tue Nov 25, 2014 10:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Invalid referback in DCB field

Postby steve-myers » Sat Nov 29, 2014 10:10 am

Gallium wrote:... Not cover to cover!

Very few, if any, have read JCL reference from cover to cover. However extracting the section that discusses //xx DD ...,DCB=*.ddname takes just a few seconds. And, I don't think you bothered to do that. This link will take you directly to the section that discusses DCB=*.ddname. Granted, I knew where to go, so it took me about 20 seconds. I don't like - and rarely do it any more - providing these links, mainly because they may be release dependent.

One mark of a true professional in this trade is a pro knows how to find information of this nature, quickly and accurately. Granted it's sometimes hard to read and understand, though this subsection seems - to me - fairly easy to understand.
(fair use excerpt)
Specify a backward reference to an earlier DD statement. The system is to copy DCB information from the DCB parameter specified on that DD statement. The DCB parameter of the referenced DD statement must contain subparameters, and it cannot name a cataloged data set or refer to another DD statement.
Now, please tell me what is so confusing about that.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Invalid referback in DCB field

Postby Gallium » Sat Nov 29, 2014 9:00 pm

steve-myers wrote:
(fair use excerpt)
Specify a backward reference to an earlier DD statement. The system is to copy DCB information from the DCB parameter specified on that DD statement. The DCB parameter of the referenced DD statement must contain subparameters, and it cannot name a cataloged data set or refer to another DD statement.
Now, please tell me what is so confusing about that.


What DD and DCB they are actually referring to.

I tried your solution, but it didn't work?
Gallium
 
Posts: 33
Joined: Tue Nov 25, 2014 10:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Invalid referback in DCB field

Postby steve-myers » Sat Nov 29, 2014 11:42 pm

Gallium wrote:... What DD and DCB they are actually referring to.

I tried your solution, but it didn't work?

... it didn't work?
What a useless comment. What, exactly, did you try? What message did you receive? What actual DCB parameter was applied if it executed?
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post