Again, thanks everyone. The problem is solved. Just to respond to a couple of 
loose ends:

> I simply entered "REXX SYSCALLS OPEN" into Google Search

Yeah, me too. I got a different manual,

> Why does it always fail on the second file regardless of swapping  the order?

The file names are constructed by the program. Each file covers one month. The 
user specifies a date range and the program constructs the appropriate file 
names. It was getting the first one right but subsequent ones wrong. If you 
want the gory details, the filenames are of the form Foo-2022-09 and for the 
second file it was computing Foo-2022-9, not -09. I was displaying the 
constructed filename and Foo-2022-9 looks right to a human, not so much to the 
UNIX file system.

> I'll suggest defending against perverse file names 

The file names are constructed by the program and should never be perverse. 
They are not user input.

> That should make -21 impossible.

The -21 was on the read, not the open, and was appropriate.

I find the documentation very lacking in "big picture." The examples are often 
nearly useless. Is that (FN) syntax documented anywhere? I take it that the 
parentheses dereference FN so that the filename is the value of FN, not "FN" 
literally. Is that documented anywhere? Is there a SHARE presentation or 
anything like that that gives a big picture and some seriously useful examples?

Charles

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to