HP3000-L Archives

January 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Undrill <[log in to unmask]>
Reply To:
Mark Undrill <[log in to unmask]>
Date:
Wed, 27 Jan 1999 11:21:46 -0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
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

ATOM RSS1 RSS2