VMS Help
FORTRAN, Statements, INQUIRE

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

  Returns information about specified properties of a file or of a
  logical unit on which a file might be opened.  The unit need not
  exist, nor need it be connected to a file.  If the unit is
  connected to a file, the inquiry encompasses both the connection
  and the file.  Statement format:

     INQUIRE ([FILE=fi][,DEFAULTFILE=dfi...],flist)
     INQUIRE ([UNIT=]u,flist)

     fi     Is a character expression, numeric scalar memory
            reference, or numeric array name reference whose
            value specifies the name of the file to be
            inquired about.

     dfi    Is a character expression specifying a default file
            specification string.  Parts of the file specification
            not specified in FILE are filled in from DEFAULTFILE.
            Parts of the file specification that are still missing
            are filled in from your default directory when the
            program runs.

     flist  Is a list of property specifiers in which any one
            specifier appears only once.  Information about the
            individual specifiers is available under the
            subtopic headings listed at the end of this Help
            topic.

     u      Is an integer variable or constant specifying the
            logical unit number of the file, optionally prefaced
            by UNIT=.  UNIT= is required if unit is not the
            first I/O specifier.  The unit does not have to
            exist, nor does it need to be connected to a file.
            If the unit is connected to a file, the inquiry
            encompasses both the connection and the file.

  FILE=fi and UNIT=u can appear anywhere in the property-specifier
  list; however, if the UNIT keyword is omitted, the unit specifier
  ("u") must be the first parameter in the list.

  When inquiring by file, you can specify DEFAULTFILE=dfi in addition
  to, or in place of, FILE=fi.  If a file is open with both FILE and
  DEFAULTFILE keywords specified in the OPEN statement, then you can
  inquire about this file by specifying both the FILE and DEFAULTFILE
  keywords in the INQUIRE statement.

  An INQUIRE statement can be executed before, during, or after the
  connection of a file to a unit.  The values assigned by the
  statement are those that are current when the INQUIRE statement
  executes.

  You can use INQUIRE to get file characteristics before opening a
  file.  (File characteristics are stored in the file header.)

  Additional Information (explode) :

  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.