Previous Topic: Specifying a Numeric Value Associated with an OccurrenceNext Topic: Queue and Scratch Management Commands


Specifying a Message to Appear in the Message Field of an Occurrence

The text of a message or a code associated with a message that has already been defined in the message dictionary can be specified in a PUT DETAIL command. When the dialog is executed, the runtime system moves the appropriate message to the message field in the dialog's map.

A message field is defined by the $MESSAGE map field.

Note: For more information, see the CA IDMS Mapping Facility Guide.

If no message field is defined for the detail area of the pageable map, the runtime system places the message in the header or footer message field or, if neither the header nor the footer has a message field, the runtime system ignores the message. If more than one message is placed in the header or footer message field, the messages are concatenated up to the length of the message field.

Considerations

The following considerations apply to specifying a message code in a PUT DETAIL command:

Severity code

Action

0

Processes the PUT DETAIL command

1

Snaps all CA ADS resources and processes the PUT DETAIL command

2

Snaps all system areas and processes the PUT DETAIL command

3

Snaps all CA ADS resources and terminates CA ADS with a task abend code of D002

4

Snaps all system areas and terminates CA ADS with a task abend code of D002

5

Terminates CA ADS with a task abend code of D002

8

Snaps all system areas and terminates the DC system with an operating system abend code of 3996

9

Terminates the DC/UCF system with an operating system abend code of 3996

Example

The following example illustrates the map and the premap and response processes of a dialog that:

The paging type in this example is WAIT. If the user makes a paging request and no MDTs are set, the runtime system displays the requested page. If the user makes a nonpaging request or if any MDTs are set, the runtime system initiates the response process. The response process is associated with the control keys ENTER, FWD (paging forward), and BWD (paging backward).

The pageable map associated with the dialog is shown in the screen that follows. The following considerations apply to the detail area map fields:

 ┌─
 │              1
 │  DEPT. ID: _____
 │
 └─

 ┌─            2                    3                                   4
 │  EMP. ID: _____   LAST NAME: _______________             ACTION CODE: ___
 │                                   5                                6
 │                   START DATE: ________                   MESSAGE: ________
 │
 │
 │
 │
 │
 │
 │
 │
 └─

 ┌─         7
 │  PAGE: _____
 │
 │
 │  8
 │  ____________________________________________________________________________
 └─

Note:

  1. Maps to DEPT-ID of DEPARTMENT database record
  2. Maps to WK-EMP-ID through detail occurrence
  3. Maps to WK-EMP-LNAME through detail occurrence
  4. Maps to WK-ACTION through detail occurrence
  5. Maps to WK-EMP-START-DATE through detail occurrence
  6. Maps to $MESSAGE through detail occurrence
  7. Maps to $PAGE system-supplied data field
  8. Maps to WK-MESSAGE

Sample Premap Process

The premap process shown below performs the following:

Sample Response Process

The response process shown below performs the following: