|
|
| Author |
Message |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1087 Location: At my desk
|
|
|
|
| Frank Yaeger wrote: |
| Hmmm ... I read through the doc again and I don't see where this is restricted to referback situations. The restriction seems to be for any DD statement that requests the same data set as a previous DD statement for output. |
Excellent point, after rereading, I have to agree, unless there is something that the (fill in the name of the correct process here) does differently during the referback as opposed to having full and direct access to the cataloged information....
| Quote: |
| I'm guessing that the same problem can occur with catalogued data sets when referback is NOT used such as in the example you show. Anybody know for sure? |
Maybe we can get 'raviraman sr' to test it? |
|
| Back to top |
|
 |
References
|
Posted: Fri May 02, 2008 1:29 am Post subject: Re: |
 |
|
|
 |
raviraman sr
New User
Joined: 29 Apr 2008 Posts: 5 Location: U.S.
|
|
|
|
Hi,
Do you think the below would work if the files (TEMPOUT*) being created is in the same step? I was of the opinion that the below would not work and this is the reason I thought Splice Operator Examples had it as a back reference.
Am I wrongly interpreting this?
| Code: |
//MRGINPUT DD DISP=(SHR),
// DSN=&USER..TEMPOUT1
//*
// DD DISP=(SHR),
// DSN=&USER..TEMPOUT2
|
|
|
| Back to top |
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1087 Location: At my desk
|
|
|
|
The question came up as to whether or not it was the referback, i.e.,
//MRGINPUT DD DISP=(SHR),
// DSN=*.SORTOF01
or just any reference to a dataset created in the same step. i.e.,
//MRGINPUT DD DISP=(SHR),
// DSN=&USER..TEMPOUT1
that is causing the loss of data....
Based upon your original JCL, see if you have a setup that (regularly) fails with the referback (*.SORTOF01), then try to see if it fails (regularly) with the actual DSN (&USER..TEMPOUT1).
And, unless it is needed, drop the 'VOL=REF=*.SORTOF01' in both cases, (unless somebody knows why it should be needed?)......
Or try it in both, who knows, that may be the culprit....grin.....
Dang, I love debugging......  |
|
| Back to top |
|
 |
raviraman sr
New User
Joined: 29 Apr 2008 Posts: 5 Location: U.S.
|
|
|
|
Hi ,
I have attempted the below earlier and it will give JCL interpreter error for dataset not found. I originally had only temp datasets (&&TEMP**) for the "throwaway" files but due to my site restrictions I catalogued with 2 days retention.
When referred with DISP=SHR as below
| Code: |
//MRGINPUT DD DISP=(SHR),
// DSN=&USER..TEMPOUT1
|
The JCL Interpreter tries to check whether the file is in catalogue. Since it is not found/created in the prev. step, it throws up interpreter error.
Only way I think this can be overcome is by specifying DISP=MOD which we will have to check with our assurance team.
Thanks again for your help. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 6944 Location: 221 B Baker St
|
|
|
|
Hello Ravi,
Thank you for posting what you learned - Good luck
Someone will be here if there are new "opportunities  |
|
| Back to top |
|
 |
|
|