MFS output examples

The following figures provide examples of MFS output.

In the examples shown in the following figures, the IMS message consists of 3 presentation pages:
  • Logical page 1 that makes up 2 presentation pages
  • Logical page 2 that makes up 1 presentation page

In all of the examples, the ATTACH FM header showing DPN=X'.03' is optional.

Exception: For the first paging request, the ATTACH FM header showing DPN=X'03' is required.
Figure 1. Example of demand-paged output, operator logical paging (OLP) not defined, sequential retrieval using QGETN FM header
Figure shows multiple arrows between IMS and OTHER with various labels on the arrows, such as ATTACH DPN=MID,DQN=,OIC,BB/CD, and ATTACH DPN=X'03',QGETN,QNAME=X,OIC,CD, and others.
IMS action: Remove message from the message queue
Note:
  1. QCURSOR=0400010001, QCOUNT=020002
  2. QCURSOR=0400010002, QCOUNT=020002
  3. QCURSOR=0400020001, QCOUNT not present
  4. DD FM header can precede the data

    The QNAME returned on paging requests must be the same value as sent on the output ATTACH DQN.

Figure 2. Example of demand-paged output, OLP defined, QGET (last page request and by cursor) used. QPURGE used to dequeue the message
Figure shows multiple arrows between IMS and OTHER with various labels on the arrows, such as ATTACH DPN=MID,DQN=,OIC,BB/CD, and ATTACH DPN=X'03',QGETN,QNAME=X,OIC,CD, and others.
Note:
  1. QCURSOR=0400010001, QCOUNT=020002
  2. CURSOR=0400020001, QCOUNT not present
  3. Data descriptor FM header can precede the data

These same conditions for non-SCHEDULER demand-paged output result in an exception response and in subsequent ERP FMH7 being sent.

Figure 3. Example of demand-paged SCHEDULER output, OLP defined, QGET by cursor request for a page not within the range of output message
Figure shows multiple arrows between IMS and OTHER with various labels on the arrows, such as ATTACH DPN=SCHEDULER,,DQN=X,SCHEDULER OIC,(BB)EB, and ATTACH DPN=X'03',QGETN,QNAME=X,OIC,(BB)CD, and others.
Note:
  1. QCURSOR=0400010001, QCOUNT=020002
  2. Data descriptor FM header can precede data
Figure 4. Example of autopaged output
Figure shows multiple arrows from IMS to OTHER. Each arrow has a label, such as ATTACH DPN=SCHEDULER,SCHEDULER FMH,data,FIC,(BB) or ,data,OIC. Notes 1 and 2 refer respectively to labels just noted.
Note:
  1. Sending a first-in-chain with BB on autopaged output requests DR1 (RQD1).
  2. Data descriptor FM header can precede the data in each chain. The ATTACH indicates a multichain message.
Figure 5. Example of nonpaged output message
Figure shows multiple arrows between IMS and OTHER with various labels on the arrows, such as ATTACH DPN=MID,data,OIC,(BB)CD, ATTACH DPN=(note),data,FIC(EB), and others.
Note: Data descriptor FM header can precede the data.