[J3] WRITE statement with newline character at the end of each record.

Steve Lionel steve at stevelionel.com
Tue Jul 22 21:25:06 UTC 2025


On 7/22/2025 4:12 PM, Daniel Chen via J3 wrote:
> Most of the compilers that I have access to failed at the runtime 
> complaining over stepping internal files.
> It seems it is due to that each record has a newline character, which 
> brings the pointer to the next line after the last record.

I'm not seeing any newline character, nor is there allowed to be one in 
internal writes like this. What I do see is that after the 10th record, 
the slash edit descriptor is processed and that creates an 11th record, 
which doesn't exist. Putting a colon before the slash, to stop 
processing if there are no more I/O list items, solves that. This looks 
like the correct behavior to me.

Steve




More information about the J3 mailing list