Behavior of segmented programs on CICS or IMS

EGL segmented programs require special considerations in the CICS® or IMS™ environments.
When a user first invokes an EGL segmented program in these environments, the program behaves as follows :
  1. Performs initialization tasks, including detecting that the user has newly started the program.
  2. Gives control to the beginning of the program logic.
  3. Implements each EGL converse statement:
    1. Uses a work database to save program state, a set of user-specific values that reflect the current status of the user-program conversation. The state includes the data for all records and forms and the information needed to run the program from the appropriate line.
    2. Commits data base and recoverable resources
    3. Releases all locks
    4. Does not retain database position, even if the database open statement includes the forUpdate option
    5. Converses a form
    6. Ends
When the user performs an action, such as updating business data, the runtime system restores the program to memory. The program starts from the beginning again. The segmented program automatically acts as follows:
  1. Performs initialization tasks, including detecting that the program has been restarted.
  2. Restores program state, including the data for all forms and records, and information about which converse statement ran in the program.
  3. Reads the user's input and performs any edits.
  4. Continues the cycle when implementing the next converse statement:
    1. Saves program state
    2. Commits database and recoverable resources
    3. Releases all locks
    4. Does not retain database position, even if the database open statement includes the forUpdate option
    5. Converses a form or VGUI record
    6. Ends

Feedback