The ADD verb adds system and component entity definitions to the data dictionary and associates component entities with the current system. ADD also establishes currency for systems, lines, and physical terminals.
When adding an entity, you can explicitly specify characteristics of the entity and/or you can accept one or more default characteristics. Component entities added to an existing system are not reflected in the executable form of the system until the next successful GENERATE statement for that system. You must generate the system definition before bringing it up.
How the Compiler Handles ADD Requests
The system generation compiler responds to ADD requests, as follows:
Object Records are Flagged for Update
Object records created in response to ADD requests are flagged for update. These records do not yet contain a copy of the information in the corresponding source records. In response to a GENERATE statement, the system generation compiler copies the information about the entity from the source record to the object record and removes the update flag.
Using DEFAULT IS ON Option
The system generation compiler accepts the ADD verb in reference to an existing system or to a component entity already associated with the current system only if you have specified DEFAULT IS ON in the SET OPTIONS statement. When DEFAULT IS ON has been specified, the system generation compiler changes the ADD verb to MODIFY for existing entities.
Note: For more information and syntax for the SET OPTIONS statement, see SET OPTIONS Statement.
The following table illustrates system generation compiler actions in response to ADD requests.
|
Statements |
Compiler Actions |
|---|---|
|
ADD SYSTEM 20. |
Adds source record for system 20 and sets system 20 current. |
|
ADD TASK X. (system 20 current) |
Adds source and object records for task X. Object is connected to system 20 source record and is flagged for update (U). |
|
ADD SYSTEM 30. |
Adds source record for system 30 and sets system 30 current. |
|
ADD TASK X. (system 30 current) |
Adds object record for task X. Object is connected to system 30 source record and is flagged for update (U). |
|
GENERATE. (system 30 current) |
Adds object record for system 30. Copies information from task X source record to task X object record for system 30 and removes update flag. |
|
MODIFY SYSTEM 20. GENERATE. |
Sets system 20 current and adds object record for system 20. Copies information from task X source record to task X object record for system 20 and removes update flag. |
|
Copyright © 2014 CA.
All rights reserved.
|
|