On Fri, 14 Feb 2014 14:33:03 -0500, John Gilmore <[email protected]> wrote:

>Bill,
>
>The 'compatibility problem' you mention is not obvious to me.
>Currently--I have tested all of the permutations---either the IN bit
>is set or the OUT bit is set.  Both are never set.
>
>My view is, yes, that both the IN bit and the OUT bit should be set in
>the ACB at open time when the file is opened for update and, of
>course, only in this case.   Currently, usage for update is
>indistinguishable from [admittedly already impure] usage for output.
>
>I now suspect that if this were done the SMF flag-bytes problem would
>be fixed too as a byproduct.
>
John,

When you say "should be set in the ACB at open time" I'm not sure if you mean 
it should be set by OPEN or that it should be set prior to OPEN, using the 
MACRF operand of ACB. I think you mean the former.

If the former, there is nothing for OPEN to check to see if the program will be 
updating records. You say "when the file is opened for update" but there is no 
"open for update" with ACBs.

If the latter (both IN and OUT bits must be set prior to OPEN if updates are to 
be allowed) then compatibility would be a problem because of all the existing 
code that does updates with the IN bit off.

Bill

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to