As I see it you've been trying to fit a square peg into a round hole.
Doesn't seem like square peg and round hole to me, actually it all seems
to work quite neatly, just so long as the dataset is DISP=OLD.
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.
That "workaround" has been suggested to me, but I've yet to try it out.
I would need to dynamically allocate a new ddname using SVC99 with
matching parameters (dataset name, dcb information, space allocation,
but primarily anything that might affect volume allocation, such as
unit, unitcount, volume count, volume serial numbers etc), then do all
of my access through that DCB instead of the one that the user has set up.
I was hoping for a "proper" resolution, ideally consisting of "you've
forgotten to set bit X in field Y". soon however I will have to start
implementing the workaround to see if it helps.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
----------------------------------------------------------------------
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