> to write until a DROPped line of STEM. is encountered.

My Rexx reference says "When EXECIO writes an arbitrary number of lines from a 
list of compound
variables, it stops when it reaches a null value or an uninitialized variable 
(one
that displays its own name)."

> What happens if STEM.0 exceeds the number of defined lines of the compound?

My Rexx reference says "The 0th variable has no effect on controlling the 
number of lines written from
variables."

But a good conjecture (that or something similar) on the OP's problem.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Paul Gilmartin
Sent: Wednesday, December 30, 2015 3:19 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Rexx and member statistics question

On Wed, 30 Dec 2015 14:49:04 -0800, Charles Mills wrote:

>Let's see if I have this right.
>
>You EXECIO DISKR a PDS member into stem INPUT.
>
>You then attempt to write it out using EXECIO DISKW * from stem INPUT. The 
>write fails unless the member has ISPF statistics.
>
>However, EXECIO DISKW INPUT.0 succeeds.
>
>Do I have that right? If so, no, that sounds wrong to me.
>
It's documented that if a count is specified, that number of lines is written 
from STEM.

If count is given as "*", writing terminates at the first null member of STEM.

Now, I'll conjecture:

If the member has ISPF statistics, it was probably created by ISPF EDIT, and 
ISPF will never write an empty record.

If the member lacks ISPF statistics, it was probably created other than by ISPF 
EDIT and may contain empty members.  The write will terminate at the first 
empty line.

Bad design.  It would be better, when count is "*" to write until a DROPped 
line of STEM. is encountered.

What happens if STEM.0 exceeds the number of defined lines of the compound?

What happens if count is "*", but a DROPed line is encountered before an empty 
line?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to