James Giles <[log in to unmask]> wrote: > Dan Nagle <[log in to unmask]> wrote: > ... > >The value -1 is returned by INQUIRE to mean "no unit is connected" > > I can't find that in the standard. The IOSTAT argument to INQUIRE > will return a processor defined positive integer when an error occurs > in processing the inquiry. It is not an error to inquire about the > existence of a unit number though. I think that Dan Nagle is referring to the NUMBER= specifier for INQUIRE. You call it like this: INQUIRE(NUMBER=N,FILE=SOMEFILE) which returns -1 into N if no unit is connected to SOMEFILE. I do not think that using -1 to specify the unit of standard input or output when they do not exist would break this. In fact, it looks like it shares the same spirit. -- Michel Beland [log in to unmask] professionnel de recherche tel: (514)369-5223 fax: (514)369-3880 CERCA (Centre de recherche en calcul applique) 5160, boul. Decarie, bureau 400(423), Montreal (Quebec), Canada, H3X 2H9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%