VMS Help  —  COBOL  PROCEDURE_DIVISION, RECONNECT
  The RECONNECT statement moves the current database record of the run unit
  from one set to another (possibly the same) set.

  Format -

   RECONNECT [ record-name ] WITHIN { { set-name } ... }
                                    { ALL              }

      [           [{| REALM                    |}]          ]
      [ RETAINING [{| RECORD                   |}] CURRENCY ]
      [           [{| { SET [ set-name ] ... } |}]          ]
      [           [{| { { set-name } ...     } |}]          ]

      [ ON ERROR stment ] [ NOT ON ERROR stment ]

      [ END-RECONNECT ]

1  –  record-name

  names a subschema record type.

2  –  set-name

  names a subschema set type.

3  –  stment

  is an imperative statement.
Close Help