Skip to content

Guidelines for Modifying Default Handling of the LOCK MODE

There are several -f compiler flags designed to allow the user to create implicit declarations for LOCK MODE in files.

The -f compiler flags related to the treatment of LOCK MODE are:

  • -fexclusivelock
    Causes all files with no LOCK MODE clause in their SELECT statement to be declared implicitly as LOCK MODE IS EXCLUSIVE.
  • -fmanuallock
    Causes all files with no LOCK MODE clause in their SELECT statement to be declared implicitly as LOCK MODE IS MANUAL unless a SHARING clause in the SELECT statement or in the OPEN statement indicates otherwise.
  • -fshare-all-autolock
    Causes all files with a SHARE WITH ALL clause in their SELECT statement to be declared implicitly as LOCK MODE IS AUTOMATIC.
  • -fshare-all-manulock
    Causes all files with a SHARE WITH ALL clause in their SELECT statement to be declared implicitly as LOCK MODE IS MANUAL.
  • -fshare-all-default
    Causes all files to be declared implicitly as SHARE WITH ALL.
Back to top