(j3.2006) FLUSH on non-connected unit

Bill Long longb
Wed Jun 1 17:02:57 EDT 2016


You probably want 9.5.3p2:

All input/output statements are permitted to refer to units that exist. The CLOSE, INQUIRE, and WAIT statements are also permitted to refer to units that do not exist. No other input/output statement shall refer to a unit that does not exist.

Cheers,
Bill


On Jun 1, 2016, at 3:55 PM, Daniel C Chen <cdchen at ca.ibm.com> wrote:

> Hello,
> 
> I couldn't find wording in the standard that prohibits FLUSH statement on a non-connected unit. i.e.
> Flush(10)
> End
> 
> Is it allowed?
> 
> Thanks,
> 
> Daniel
> 
> XL Fortran Development - IBM Toronto Software Lab
> Phone: 905-413-3056 
> Tie: 969-3056 
> Email: cdchen at ca.ibm.com
> http://www.ibm.com/software/awdtools/fortran/xlfortran
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3

Bill Long                                                                       longb at cray.com
Fortran Technical Support  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101





More information about the J3 mailing list