On Wed, 13 Apr 2016 19:29:42 -0700, Greg Dyck wrote:
>How to determine the length of the block for a BSAM/BPAM RECFM=FB
>dataset is fully described in the z/OS DFSMS Using Data Sets book,
>Processing Sequential Data Sets, Determining the Length of a Block.
>Greg
>
>https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.idad400/len99.htm?lang=en
>
It's coming back to me now. Mostly the access method doesn't tell you how much
you
read; it tells how much you didn't read, and you must subtract.
2. ...RDW...
Trust that only if you trust the source of your data. Hasn't been a good idea
for about
40 years. Or does the access method verify it?
4. b. ...If you are using LBI for BSAM or BPAM, subtract 12 from the
address of the status area.
This gives the address of the 4 bytes that contain the length of
the block read.
Why don't access methods do that for every CHECK operation? What century is
this, anyway?
Is there a macro or a subroutine that performs this computation? Reusable code?
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN