> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Joseph Reichman
> Sent: Friday, February 03, 2017 11:27 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: BSAM vs QSAM
> 
> I have huge VB files
> 
> Don't really understand what you mean by
> 
> Deblock after doing a READ then WAIT
> 
> Where an entire block is read subsequent READs
> Just point to the next record

When using BSAM, READs don't point anywhere.  A read simply loads the next
BLOCK into the buffer you specify.  If there is more than one record in the
block, it is your job to use the BDW and RDW  to determine if the next
record exists and where it is located within the block.  This process is
called deblocking.

If you issue a READ specifying the same buffer before you have processed all
the records in the block, those records are gone and you have a new set of
records in the buffer.  The READ did not care that you were not done with
the block.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to