Previous Topic: The ADD VerbNext Topic: The Delete Verb


The Modify Verb

The MODIFY verb will punch the MODIFY command syntax for the objects that meet the selection criteria in the CCDB. CA Endevor/DB will punch the identifying clauses in each command. The identifying clauses are comprised of the information necessary to identify the CCDB object. For example, an entity is identified by its name, type, and version. If you enter the command:

       SET OPTIONS PUNCH.

       MODIFY ENTITY.

CA Endevor/DB would punch the following MODIFY ENTITY syntax:

MOD  ENTITY NAME IS "COEDASO         "
            TYPE IS "DIALOG          "
         VERSION IS 00001
                 .
MOD  ENTITY NAME IS "COEDASO-PREMAP "
            TYPE IS "PROCESS         "
         VERSION IS 00001
                 .
MOD  ENTITY NAME IS "COEDASO-RESPONSE"
            TYPE IS "PROCESS         "
         VERSION IS 00001
                 .
MOD  ENTITY NAME IS "COEDSHIP        "
            TYPE IS "DIALOG          "
         VERSION IS 00001
                 .

Any additional clauses that you enter will also be included in every punched MODIFY command. Only the clauses that you enter in the command, in addition to the identifying clauses, will be punched. If, for example, you do not enter a COMMENT clause in the MODIFY command, CA Endevor/DB will not include that clause in the punched command.

For example, if you want to punch a MODIFY ENTITY command with a specific COMMENT clause for every entity whose name begins with JSB, you would enter the following command:

       SET OPTIONS PUNCH.

       MOD ENTITY NAME JSB*

       COMMENT = "MODIFY JSBTEST".

CA Endevor/DB Batch will punch the following:

MOD ENTITY NAME IS JSBTEST1
           TYPE IS ELEMENT
        VERSION IS 1
        COMMENT IS "MODIFY JSBTEST"
                .
MOD ENTITY NAME IS JSBTEST2
           TYPE IS RECORD
        VERSION IS 1
        COMMENT IS "MODIFY JSBTEST".
                .
MOD ENTITY NAME IS JSBTEST2
           TYPE IS ELEMENT
        VERSION IS 2
        COMMENT IS "MODIFY JSBTEST"
                .

As you can see, CA Endevor/DB punched a MODIFY ENTITY command for every entity in the CCDB whose name began with JSB. The identifying clauses, NAME, TYPE, and VERSION were automatically included in the command. The COMMENT clause that you entered was also included in each command that was punched. Comments (if there were any) in the CCDB were ignored.