3270 device format conversion example

This example is provided to clarify MFS device definition compatibility for 3270 devices.

Assume that the installation has 3270 model 1 and model 2 display devices and has installed additional display devices with 12×80, 24×80, 32×80, and 43×80 screen sizes. A new IMS system definition was performed for the additional devices, and the 3270 model 1 and model 2 devices were redefined to specify the device symbolic name.

The IMS system definition specifications for these 3270 displays were as follows:

  • TYPE=3270-A1, SIZE=(12x80) for the additional devices with 12x80 screen size.
  • TYPE=3270-A2, SIZE=(24x80) for the 3270 model 2 and additional devices with 24x80 screen size.
  • TYPE=3270-A3, SIZE=(32x80) for the additional devices with 32x80 screen size.
  • TYPE=3270-A4, SIZE=(43x80) for the additional devices with 43x80 screen size.
  • TYPE=3270-A5, SIZE=(12x40) for the 3270 model 1 device.

The following MFS changes were required to convert existing 3270 model 1 and 2 device format definitions for use on the 3270 model 1, model 2, and on the additional devices:

Existing Definitions:

label    FMT
         DEV       TYPE=(3270,1)
         DIV       TYPE=INOUT
         DPAGE                  ...
label    DFLD                   ...
label    DFLD                   ...
label    DFLD                   ...
         DEV       TYPE=(3270,2)
         DIV       TYPE=INOUT
         DPAGE                  ...
label    DFLD                   ...
label    DFLD                   ...
label    DFLD                   ...
         FMTEND                 ...

Changes Applied and Recompiled:

label    FMT
         DEV       TYPE=3270-A5 (changed from (3270,1) to 3270
                                display with 12x40 screen size)
         STACK     ON
         DIV       TYPE=INOUT
         DPAGE                  ...
label    DFLD                   ...
label    DFLD                   ...
label    DFLD                   ...
         STACK     OFF
         DEV       TYPE=3270-A1 (3270 display with 12x80 screen
                                    size)
         UNSTACK
         DEV       TYPE-3270-A2 (changed from (3270,2) to 3270
                                    display with 24x80 screen size)
         STACK     ON
         DIV       TYPE=INOUT
         DPAGE                  ...
label    DFLD                   ...
label    DFLD                   ...
label    DFLD                   ...
         STACK     OFF
         DEV       TYPE=3270-A3(3270 display with 32x80 screen
                                    size)
         UNSTACK  ,KEEP
         DEV       TYPE=3270-A4(3270 display with 43x80 screen
                                    size)
         UNSTACK
         FMTEND

After the changes are applied and recompiled, the new device formats are designed to take advantage of each screen size, and the previous format definition can be compiled again as follows:

label    FMT
         DEV       TYPE=3270-A5
         DIV       TYPE=INOUT
         DPAGE                  ...
label    DFLD                   ...
label    DFLD                   ...
label    DFLD                   ...(existing device fields
                                using 12x40 screen size)
         DEV       TYPE=3270-A1
         DPAGE                  ...
label    DFLD                   ...(new device fields using
                                12x80 screen size)
         .
         .
label    DFLD                   ...
         DEV       TYPE=3270-A2
         DIV       TYPE=INOUT
         DPAGE                  ...
label    DFLD                   ...(existing device fields
                                using 24x80 screen size)
label    DFLD                   ...
label    DFLD                   ...
         DEV       TYPE=3270-A3
         DIV       TYPE=INOUT
         DPAGE                  ...
label    DFLD                   ...(new device fields using
                                32x80 screen size)
         .
         .
label    DFLD                   ...
         DEV       TYPE=3270-A4
         DIV       TYPE=INOUT
         DPAGE                  ...
label    DFLD                   ...(new device fields using
                                43x80 screen size)
         .
         .
label    DFLD                   ...
         FMTEND