Hi I'm on IBM VSE using Cobol. My program is supposed to have tha ability to read multiple input tapes on the same unit. It works ok, but when I respond that I have another input, the same tape stays up and reads again. If I manually unload the tape and load up the next one its fine, but this would obviuosly not work to well for operations.
I've tried a couple things that had some measure of success but ultimately didn't do what I was hoping for.
1. I changed my close statements to close with lock. This did cause the first tape to come down after reading, but died immediately after, before attempting to read a 2nd tape. Is there something I could add to the open after the close with lock, to unlock the file ?
2. I added a // MTC RUN,SYS006 to the JCL. This however only works after all tapes are read in, and the job is ending.
Thank You
I've tried a couple things that had some measure of success but ultimately didn't do what I was hoping for.
1. I changed my close statements to close with lock. This did cause the first tape to come down after reading, but died immediately after, before attempting to read a 2nd tape. Is there something I could add to the open after the close with lock, to unlock the file ?
2. I added a // MTC RUN,SYS006 to the JCL. This however only works after all tapes are read in, and the job is ending.
Thank You