BASICHELP.HLB  —  GET
  The GET statement moves a record from a file to a record buffer and  makes
  the  data  available  for  processing.   GET  statements  are valid on RMS
  sequential, relative, indexed, and block I/O files.

  Examples

  GET #1%
  GET #2%, RECORD 155%, WAIT 0%
  GET #1%, KEY #0 EQ "JONES"
  GET #2%, RFA Address(5)
  GET #1%, RECORD A%, ALLOW READ

1  –  Syntax

      GET chnl-exp [, position-clause ] [, lock-clause ]

                         { RFA rfa-var      }
        position-clause: { RECORD num-exp   }
                         { KEY # key-clause }

        lock-clause:  { ALLOW allow-clause [WAIT [int-exp]] }
                      { WAIT [int-exp]                      }
                      { REGARDLESS                          }

                       { NONE   }
        allow-clause:  { READ   }
                       { MODIFY }

                                     { str-exp      }
        key-clause:  int-exp1 rel-op { int-exp2     }
                                     { decimal-exp  }
                                     { quadword-exp }

                 { EQ }
        rel-op:  { GE }
                 { GT }
                 { NX }
                 { NXEQ }
Close Help