Natural for Mainframes Version 8.2.5 for Mainframes
 —  Parameter Reference  —

SLOCK - Source Locking

This Natural profile parameter is used to specify how concurrent updates of Natural source members are to be handled (see also Locking of Source Objects in the Editors documentation).

Possible settings PRE Activates locking of source objects that are edited either locally or in a SPoD environment, or using Natural ISPF, or in mixed environments.

Notes:

  1. This is the recommended setting when working in mixed environments.
  2. In order to lock a source member against concurrent updates, a specific record is written to the Natural system file FUSER or FNAT (depending on where the source member to be edited is located). For a DDM, the lock record is written to the Natural system file FDIC.
SPOD Locking of source objects occurs only in a remote development environment basing on Natural Single Point of Development (SPoD).

Notes:

  1. This setting provides compatibility with previous Natural versions that supported locking under SPoD.
  2. In order to lock a source member against concurrent updates, a specific record is written to the Development Server File (FDIC) system file.
  3. For a DDM, the locked record is written to the Natural system file FDIC.
POST When setting SLOCK=POST, the source object which is being edited can be read into the source work area and modified by multiple users. However, only the user who saves a modification first can update the source object.

Notes:

  1. This is done by comparing the time stamp of the source object stored in the database with the time stamp of the source object when it is read into the source work area.
  2. All other users receive appropriate error messages when trying to save the source.
  3. This concept is not compatible with the SPoD locking concept of previous Natural versions.
OFF Deactivates all locking mechanisms.
Default setting SPOD  
Dynamic specification yes  
Specification within session no  

Top of page