Re: How to accept multiple lines of Instream data.
- From: Howard Brazee <howard@xxxxxxxxxx>
- Date: Thu, 27 Apr 2006 08:15:31 -0600
On 27 Apr 2006 00:54:56 -0700, "arrbee" <arrbee@xxxxxxxxx> wrote:
There is a pure COBOL program that accepts instream data from a JCL
SYSIN card. So, if it is one line then we use "ACCEPT Identifier-1" in
procedure division. If the SYSIN card has multiple lines of data then
how to accept it?
I pretty much stopped using ACCEPT for this and have switched to READ.
READ works everywhere the same way, you can change the assign name,
you can check for file status, and you can tell if you have reached
the end of the input stream.
The way ACCEPT works can change in different environments.
Even for one line, I now READ. For an indeterminate number of lines,
I never have considered anything else.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
.
- References:
- How to accept multiple lines of Instream data.
- From: arrbee
- How to accept multiple lines of Instream data.
- Prev by Date: Re: How to accept multiple lines of Instream data.
- Next by Date: Re: Prodcuing an output file only on Friday?
- Previous by thread: Re: How to accept multiple lines of Instream data.
- Next by thread: Re: How to accept multiple lines of Instream data.
- Index(es):
Relevant Pages
|