If the first two bytes of the block contains a two byte block length,
then all you may need to do is declare the file as VBS (variable block
spanned). 

I'm really rusty in BAL, but I think if you use GET MOVE logic, you
should see a complete record in your record area. That is, z/os will
obtain the record fragments and put them together for you. That may also
be so in GET LOCATE where the record is presented to your program in
contiguous storage as if it had been wholly contained in a single block.


Again, really, really rusty in BAL.  

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Ward, Mike S
Sent: Tuesday, July 15, 2008 1:18 PM
To: [email protected]
Subject: Circular buffer

Hello listers, I have a question on circular buffers. I have an
application that reads data in blocks. The data data I read is in 32k
blocks. Each record in the block starts with a length in the first 2
bytes. When I get to the end of the 32k block I many have a partial
record that starts in the next block I read. A colleague suggested I use
a circular buffer. He's not to sure what it means and neither do I. I
think it means to use the same buffer but in a circular fashion. The
program is in assembler and I'm trying very hard to cope with it. Do any
of you have a sample that I may borrow on how to do this circular
buffer? Any feedback is welcome.

Mike

 

NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.

----------------------------------------------------------------------
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

Reply via email to