On 02/08/2016 04:37 PM, Chris Cantrell wrote:
Steve, have you ever tried this, or, do you know anyone who has. I tried it and
I don't seem to be getting control when the volume switches. Here's what I did;
1) I added LABEL RECORDS ARE STANDARD to the FD for the file. 2) I added a
DECLARATIVE to process trailer labels for the file. In the code I set the EOF
switch on and displayed a message.
When I run the process, it changes tapes (just like before), but I don't get a
display and it doesn't think it reached EOF.
Any suggestions?
Thanks, Chris
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
I've done a lot of work with tapes over the years to test error
recovery and the like.
That said, read the COBOL Lang Ref (for the COBOL you are using)
very carefully. If you are using Ent. COBOL 4.2 or 5.x, you can
get a fix if it does not match what the book says (assuming z/OS,
dunno know what the situation is on VSE these days).
I can't do this kind of testing where I work now -- we use a VTS
and it may just simulate a tape and not actually use one.
But, even if it is simulating a tape, if you are allowed to
process the label, you should get the "label" presented.
Now, what we did for testing tape (at Sterling Commerce/IBM), was
we wrote a utility program in ALC and did early EOV to force us
to the second tape to write a few blocks or whatever. If you have
LARGE or HUGE tapes, you have to do this to reasonably test error
recovery code (which I had the task of doing for Connect:Direct
back in the day).
Regards,
Steve Thompson
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN