CDO$HELP.HLB  —  File Area Key Properties, file_def_prop, Examples
  CDO>  DEFINE RMS_DATABASE EMPLOYEE_
 INFO DESCRIPTION IS "INFORMATION ON"
  cont>   "CURRENT EMPLOYEE".
  cont>   RECORD EMPLOYEE_REC.
  cont>   FILE_DEFINITION
  cont>     ORGANIZATION INDEXED
  cont>     CHANNEL_ACCESS_MODE SUPER
  cont>     CARRIAGE_CONTROL CARRIAGE_RETURN
  cont>     ACCESS  RECORD_IO
  cont>     FILE_PROCESSING_OPTIONS BEST_TRY_CONTIGUOUS
  cont>     FORMAT VARIABLE
  cont>     SHARING GET, USER_INTERLOCK.
  cont>   AREAS.
  cont>     AREA 0
  cont>       ALLOCATE 1000
  cont>       BUCKET_SIZE 10
  cont>       EXTENSION 100
  cont>       CONTIGUOUS.
  cont>     AREA 1
  cont>       ALLOCATE 1000
  cont>       BUCKET_SIZE 1
  cont>       EXTENSION 100
  cont>       BEST_TRY_CONTIGUOUS.
  cont>     AREA 2
  cont>       ALLOCATE 1000
  cont>       BUCKET_SIZE 1
  cont>       EXTENSION 100
  cont>       BEST_TRY_CONTIGUOUS.
  cont>   END AREAS.

  cont>   KEYS.
  cont>     KEY 0
  cont>       DATA_AREA 0
  cont>       INDEX_AREA 0
  cont>       SEGMENT EMP_ID IN EMPLOYEE_REC.
  cont>     KEY 1
  cont>       DUPLICATES
  cont>       DATA_AREA 1
  cont>       INDEX_AREA 2
  cont>       SEGMENT LAST_NAME IN EMPLOYEE_REC.
  cont>   END KEYS.
  cont> END EMPLOYEE_INFO RMS_DATABASE.

      This example is the complete logical RMS database definition
      for EMPLOYEE_INFO. Seven file definition properties appear in
      the DEFINE RMS_DATABASE command:

      o  The option for file organization is INDEXED.

      o  The channel access mode is SUPER.

      o  The carriage control option is CARRIAGE_RETURN, although it
         is not necessary to code this because CARRIAGE_RETURN is the
         default.

      o  The type of record access operation this program can perform
         is RECORD_IO.

      o  An optional file processing operation is BEST_TRY_
         CONTIGUOUS.

      o  Record format for this definition is VARIABLE.

      o  The types of record operations that this program can perform
         when sharing access to a file with other programs are GET
         and USER_INTERLOCK.
Close Help