Ron Wallace <[log in to unmask]> wrote in message
news:F4B1826B1A21D211AEC5006008207AF4035E92@dogbert.csillc.com...
>In COBOL
>I ran across an accept statement problem with variable length files.
Notice the >"Y" on "NOREPORTY" on line 90.
>When the stream file was variable length the ACCEPT command picked up two
>lines in the standard list.
>When the same program was run from a fixed length file the ACCEPT command
>worked as it should.
<SNIP>
>The characters accepted in the job stream was smaller than the buffer in
working >storage.
>Anyone know the specific rules about variable length STREAM files and the
>COBOL ACCEPT statement? Does the buffer size have to match the characters
>input?
>Ron (just curious) Wallace
>559-446-6888
You could try using the
ACCEPT variable FREE
construct in HP COBOL. This seems to stop a lot of this sort of problem.
HTH
--
Mark Undrill
Affirm Limited