Page 133 - Standard Handbook Of Petroleum & Natural Gas Engineering
P. 133

118   Mathematics

                                                 Table  1-26
                                          FORTRAN Edit Specifiers
                    A            Character  data fields
                    D            Double precision data fields
                    E            Real data fields-exponential  (E) notation
                    F            Real data fields-decimal  notation
                    G            General form
                    H            Character constants
                    I            Integer data fields
                    L            Logical data fields
                    P            Scaie factors,  used with D, E,  F.  and G specifiers  to  shift the  decimal
                                 point or  exponent  size for  output
                    S            Restores the optional + convention  to  the  compiler
                    SP           Prints + with all subsequent  positive data
                    ss           Suppresses + for  all subsequent  positive data
                    TL           Next character  will  be  inputloutput the specified  number of  spaces
                                 left of  the  current  position
                    TR           Next character  will  be  inpuffoutput the  specified  number of  spaces
                                 right of  the current  position
                    X            Skip the specified  number of  spaces before next character  is inpuvoutput
                                 Ends format  control if  no  more data items  in list
                    I            Skips a  record
                                       Specifiers for  input operations only

                    BN           Specifies that  blank  characters  are  to  be  ignored
                    BZ           Specifies  blank characters are to  be  read as  zeros
                                Specifications for  time four  most common data types

                    Integer      Iw
                    Real         Fw.d
                    Character    Aw
                    Exponential   Ew.d

                    as  sequential  files,  while  disk  files  may  be  sequential  or random  access.  The
                    following statements are generally accepted  forms:
                      OPEN(1ist of  specifiers)-Connects  an existing file  to an 1/0  device  or generates
                    a  new  file, and specifies a  device  (unit) number.  The specifiers (required  and
                    optional)  are:

                      UNIT  =   file  unit (device) number
                      IOSTAT    integer variable  for  I/O  status
                      FILE      name of  file
                      ERR       label  for  error transfer
                      STATUS    file  status  descriptor, may  be  OLD,  NEW,  SCRATCH,  or  UN-
                                KNOWN
                      ACCESS    may  be SEQUENTIAL or DIRECT
                      FORM      may  be FORMATTED  or UNFORMATTED
                      RECL      record  length,  if  file access  is  DIRECT
                      BLANK     specifies blank  handling,  either NULL  or ZERO
   128   129   130   131   132   133   134   135   136   137   138