On Monday, 12/05/2005 at 07:20 CST, Alan Ackerman <[EMAIL PROTECTED]> wrote: > 1. "Rather than calling lines() each time". > > The code was taken directly from the REXX/VM Reference: > Chapter 7. Input and Output Streams > Examples of Input and Output (page 187) > > 2. "try just linein() until X.1 is null" > > That's useful to know. Is it documented anywhere?
Not that I can find. That behavior depends on the fact that the CMS file system doesn't support null lines. > 3. "I think the in-band way to determine the size of the file (as opposed > to the number of unread records) is to use stream(ifn ift ifm, 'c', 'query > size')." > > What's "in-band" Meaning "within the explicit context of the currently open file". Reading the REXX Reference "Opening and Closing Streams" and noting the nuances, it looks like LINES() isn't the culprit since it should not open the file a second time. Using the stream handles insted of fn/ft/fm may (or may not) make a difference. Alan Altmark z/VM Development IBM Endicott
