VMS Help  —  Lexicals  F$FILE_ATTRIBUTES, Examples
    1.$ FILE_ORG = F$FILE_ATTRIBUTES("QUEST.DAT","ORG")
      $ SHOW SYMBOL FILE_ORG
        FILE_ORG = "SEQ"

      This example uses the F$FILE_ATTRIBUTES function to assign the
      value of the file organization type to the symbol FILE_ORG. The
      F$FILE_ATTRIBUTES function returns the character string SEQ to
      show that QUEST.DAT is a sequential file.

      The QUEST.DAT and ORG arguments for the F$FILE_ATTRIBUTES
      function are string literals and must be enclosed in quotation
      marks (" ")  when used in expressions.

    2.$ RFM = F$FILE_ATTRIBUTES("KANSAS::USE$:[CARS]SALES.CMD","RFM")
      $ SHOW SYMBOL RFM
        RFM = "VAR"

      This example uses the F$FILE_ATTRIBUTES function to return
      information about a file on a remote node. The function returns
      the record format string VAR, indicating that records are
      variable length.
Close Help