Tom Quarendon wrote:
The question is why, when I declare my dataset DISP=OLD, do I get this behaviour, where when I open volume sequence number 2 I look at the DEB and the associated UCBs and they are indeed on the volume that I know to be the second one, whereas when I do the same with DISP=NEW the extents in the DEB are all on the first volume.

As I see it you've been trying to fit a square peg into a round hole. Try something completely different: let your current output file be DD OUTFILE, with DISP=NEW. Add another DD, say EXCPFILE, with DISP=OLD,UNIT=SYSALLDA,DSN=index.whatever,VOL=SER=anyvol As long as you don't open it, you won't fail. Now do the RDJFCB for EXCPFILE, and update only the DSN, VOLSER, and flag bits. That should bypass the DISP=NEW/MOD difficulties. I would also set the "do not rewrite" DSCB, etc. bits, and close this file before you close OUTFILE.

Gerhard Postpischil
Bradford, VT

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to