On Sat, 12 Nov 2016 20:27:13 +0000, David W Noon wrote: > >The traditional way to do this was to use a spill file, thus: > (But you use the past tense. Is there a better way now?)
> OPEN (PDS,INPUT),(SPILL,OUTPUT) > FIND PDS,<member> > >loop: > READ PDS > WRITE SPILL > >end loop: > WRITE SPILL with additional records > Why was it not traditional at this point simply to: STOW SPILL,<member>,R > CLOSE PDS,SPILL > <snip> > ... and avoid the remaining code? >This would not facilitate the appending of data to an existing member. >The serialization mechanism would not provide additional space to hold >additional records within a member. > That's what secondary extents are for. I strongly doubt that PDSE stores the pages of a member contiguously, which you seem to assume is the reason for the restriction. >If you use a STOW immediately after opening a PDS for output, you will >create a member with no records in it. > Yet ISPF LMMREP, which I assume is LM's wrapper for STOW, requires a preceding LMPUT. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN