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?

All in all, a bad hangover from CMS which does not support empty records in
MDFS or SFS.

-- gil

----------------------------------------------------------------------
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