Re: How to accept multiple lines of Instream data.



Hi Arrbee,

You CAN test for the end of a SYSIN (ACCEPT) input. Fist you decide on
a literal that connotes the end of your data (e.g. "the end") and you
put that card at "the end" of your SYSIN data. For ex:

SYSIN DD *
AAAA
BBBB
CCCC
THE END
/*

In your pgm you test for "THE END" and STOP when the test is TRUE.

Having said all that, it might be that you haven't been exposed to the
concept of the "process loop" yet that's the primary cause of your
problem.

When you perform a process many times you must construct a looping
mechanism and test for when the loop must be broken.

Although you show 3 input cards in your JCL, you only attempt to
process one in your pgm.

.