On Fri, 18 Jul 2014 09:21:15 -0400, David Andrews wrote: >On Fri, 2014-07-18 at 07:38 -0500, Bill Godfrey wrote: >> The block size field is not set to the current block's length for BSAM >> READ either. For BSAM READ, the length is determined after a CHECK or >> WAIT by subtracting the residual count from the length used by READ, >> as described in Using Data Sets: >> >> http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D4A0/3.6.7 >> Subtract this residual count from the number of data bytes requested to be >> read by the READ macro. > >Huh. Have I been doing this wrong? I've got some *old* (DSORG=PO) code >that, after READ/CHECK, follows DECB->IOB and uses the residual count at >IOBCSW+5. >
There is no conflict. The manual page, at the link I provided, says "The residual count is in the halfword, 14 bytes from the start of the status area". IOBCSW is 9 bytes into the status area. IOBCSW+5 is therefore 14 bytes into the status area. Bill ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
