Previous Topic: Syntax RulesNext Topic: CCID


Examples

The following examples illustrate the use of the DISPLAY and PUNCH commands.

Example 1

DISPLAY ENTITY CUSTOMER TYPE RECORD VERSION 1.

This command will produce the following output to the NDVRLST file:

*+  ADD  ENTITY NAME IS "CUSTOMER"
*+       TYPE IS "RECORD"
*+       VERSION IS 0001
*+       COMMENT IS
*+           "EMPSCHM VER 100 RECORD ENTITY"
*+       STATUS IS "MIGRATE-TEST"
*+       .

Example 2

PUNCH CCID
      COMMENT 'COMMENT OVERRIDE'.

This command will produce syntax for each CCID in the CCDB with any COMMENT values in the CCDB replaced by the value specified in the comment clause. The command will write the following to the NDVRLST file:

*+  ADD  CCID NAME IS "EDB-DCADMIN"
*+       TYPE IS PUBLIC
*+       SECURITY CLASS IS "NDVR-GLOBAL"
*+       COMMENT IS
*+           "COMMENT OVERRIDE"
*+       .
*+  ADD  CCID NAME IS "EDB-SYSADMIN"
*+       TYPE IS PUBLIC
*+       SECURITY CLASS IS "NDVR-GLOBAL"
*+       COMMENT IS
*+           "COMMENT OVERRIDE"
*+       .

The command will also write the following to the NDVRPCH file:

ADD  CCID NAME IS "EDB-DCADMIN"
     TYPE IS PUBLIC
     SECURITY CLASS IS "NDVR-GLOBAL"
     COMMENT IS
     "COMMENT OVERRIDE"
      .
 ADD  CCID NAME IS "EDB-SYSADMIN"
      TYPE IS PUBLIC
      SECURITY CLASS IS "NDVR-GLOBAL"
      COMMENT IS
      "COMMENT OVERRIDE"
           .