DFLD statement

The DFLD statement defines a field within a device format which is read from or written to a terminal or remote program.

Only those areas which are of interest to the IMS™ or remote application program should be defined. Null space in the format does not need to be defined.

Format for DEV TYPE=3270 or 3270-An

Read syntax diagramSkip visual syntax diagram
>>-+-------+--DFLD--+-----------+--,POS=(lll,ccc-+-----+-)------>
   '-label-'        +-PASSWORD--+                '-,pp-'     
                    '-'literal'-'                            

>--+----------+--,PEN=-+-'literal'-+---------------------------->
   '-,LTH=nnn-'        +-NEXTPP----+   
                       +-NEXTMSG---+   
                       +-NEXTMSGP--+   
                       +-NEXTLP----+   
                       '-ENDMPPI---'   

>--+---------------------------------------+-------------------->
   |         .-ALPHA-. .-,NOPROT-.         |   
   '-,ATTR=(-+-------+-+---------+-| A |-)-'   
             '-NUM---' '-,PROT---'             

>--+------------------+----------------------------------------->
   '-,OPCTL=tablename-'   

>--+--------------------------------------------------------+--><
   '-,EATTR=(-+--------+-+----------+-+-----------+-| B |-)-'   
              +-HD-----+ +-,CD------+ +-,PX'00'---+             
              +-HBLINK-+ +-,BLUE----+ +-,PX'hh'---+             
              +-HREV---+ +-,RED-----+ +-,PC'c'----+             
              '-HUL----' +-,PINK----+ +-,EGCS-----+             
                         +-,GREEN---+ '-,EGCS'hh'-'             
                         +-,TURQ----+                           
                         +-,YELLOW--+                           
                         '-,NEUTRAL-'                           

A

   .-,NODET-.  .-,NORM---.  .-,NOMOD-.  .-,STRIP---.   
|--+--------+--+---------+--+--------+--+----------+------------|
   +-,DET---+  +-,NODISP-+  '-,MOD---'  '-,NOSTRIP-'   
   '-,IDET--'  '-,HI-----'                             

B

|--+---------------+--+-----------+--+-------+------------------|
   +-,VDFLD--------+  +-,OUTL-----+  +-,MIX--+   
   +-,VMFILL,VMFLD-+  +-,OUTL'hh'-+  '-,MIXD-'   
   +-,VMFILL-------+  +-,BOX------+              
   '-,VMFLD--------'  +-,RIGHT----+              
                      +-,LEFT-----+              
                      +-,UNDER----+              
                      '-,OVER-----'              

Format for DEV TYPE=3270P

Read syntax diagramSkip visual syntax diagram
>>-+-------+--DFLD--+-----------+--,POS=(lll,ccc-+-----+-)------>
   '-label-'        '-'literal'-'                '-,pp-'     

>--+----------+--+----------------+----------------------------->
   '-,LTH=nnn-'  |        .-NO--. |   
                 '-,ATTR=-+-----+-'   
                          '-YES-'     

>--+------------------------------------------------+----------><
   '-,EATTR=(-+--------+-+----------+-+---------+-)-'   
              +-HD-----+ +-,CD------+ +-,PX'00'-+       
              +-HBLINK-+ +-,BLUE----+ +-,PX'hh'-+       
              +-HREV---+ +-,RED-----+ '-,PC'c'--'       
              '-HUL----' +-,PINK----+                   
                         +-,GREEN---+                   
                         +-,TURQ----+                   
                         +-,YELLOW--+                   
                         '-,NEUTRAL-'                   

Format for DEV TYPE=FIDS, FIDS3, FIDS4, FIDS7, FIFP, FIJP, and FIPB

Read syntax diagramSkip visual syntax diagram
>>-+-------+--DFLD--+-----------+--,POS=(lll,ccc-+-----+-)------>
   '-label-'        '-'literal'-'                '-,pp-'     

>--+----------+--+----------------+----------------------------><
   '-,LTH=nnn-'  |        .-NO--. |   
                 '-,ATTR=-+-----+-'   
                          '-YES-'     

Format for DEV TYPE=FIN

Read syntax diagramSkip visual syntax diagram
                          (1)                        
>>-+-------+--DFLD--+-POS----=(lll,ccc-+-----+-)-+-------------->
   '-label-'        |                  '-,pp-'   |   
                    |     (2)                    |   
                    '-POS----=nnn----------------'   

>--+----------+--+------------------+--------------------------><
   '-,LTH=nnn-'  '-,OPCTL=tablename-'   

Notes:
  1. MODE=RECORD only
  2. MODE=STREAM only

Format for DEV TYPE=SCS1 or SCS2 and DIV TYPE=OUTPUT

Read syntax diagramSkip visual syntax diagram
>>-+-------+--DFLD--+-----------+--,POS=(lll,ccc-+-----+-)------>
   '-label-'        '-'literal'-'                '-,pp-'     

>--+----------+--+----------------+----------------------------><
   '-,LTH=nnn-'  |        .-NO--. |   
                 '-,ATTR=-+-----+-'   
                          '-YES-'     

Format for SCS1 only

Read syntax diagramSkip visual syntax diagram
>>-+----------+--+------------------------------------------+--><
   +-,SLDI=nn-+  '-,EATTR=(-+--------+-+----------+-| A |-)-'   
   '-,SLDP=nn-'             +-HD-----+ +-,CD------+             
                            +-HBLINK-+ +-,BLUE----+             
                            +-HREV---+ +-,RED-----+             
                            '-HUL----' +-,PINK----+             
                                       +-,GREEN---+             
                                       +-,TURQ----+             
                                       +-,YELLOW--+             
                                       '-,NEUTRAL-'             

A

|--+---------+--+----------+--+-----------+---------------------|
   +-,PX'00'-+  +-,MIX-----+  +-,OUTL-----+   
   +-,PX'hh'-+  +-,MIX'nn'-+  +-,OUTL'hh'-+   
   +-,PC'c'--+  +-,MIXS----+  +-,BOX------+   
   '-,ECGS---'  '-,MIX'nn'-'  +-,RIGHT----+   
                              +-,LEFT-----+   
                              +-,UNDER----+   
                              '-,OVER-----'   

Format for DEV TYPE=SCS1 or SCS2 and DIV TYPE=INPUT

Read syntax diagramSkip visual syntax diagram
                          (1)                        
>>-+-------+--DFLD--+-POS----=(lll,ccc-+-----+-)-+-------------->
   '-label-'        |                  '-,pp-'   |   
                    |     (2)                    |   
                    '-POS----=nnn----------------'   

>--+----------+--+------------------+--------------------------><
   '-,LTH=nnn-'  '-,OPCTL=tablename-'   

Notes:
  1. MODE=RECORD only
  2. MODE=STREAM only

Format for DEV TYPE=DPM-An or DPM-Bn and DIV TYPE=INPUT

Read syntax diagramSkip visual syntax diagram
>>-+-------+--DFLD--+----------+--+------------------+---------><
   '-label-'        '-,LTH=nnn-'  '-,OPCTL=tablename-'   

Format for DEV TYPE=DPM-An or DPM-Bn and DIV TYPE=OUTPUT

Read syntax diagramSkip visual syntax diagram
>>-+-------+--DFLD--+-----------+--+----------+----------------->
   '-label-'        +-PASSWORD--+  '-,LTH=nnn-'   
                    +-'literal'-+                 
                    '-SCA-------'                 

>--+---------------------------+-------------------------------><
   |         .-NO--.           |   
   '-,ATTR=(-+-----+-+-----+-)-'   
             '-YES-' '-,nn-'       

Parameters

label
A one- to eight-character alphanumeric name can be specified. This label (dfldname) can be referred to by a message descriptor in transferring data to and from a terminal or remote program. If the repetitive generation function of MFS is used (DO and ENDDO statements), this dfldname should be restricted to 6 characters maximum length. When each repetition of the statement is generated, a 2-digit sequence number (01 to 99) is appended to the label. If the label specified here is greater than 6 characters and repetitive generation is used, the label is truncated at 6 characters, and a 2-digit sequence number is appended to form the 8-character name. No error message is provided if this occurs.

If PASSWORD, SCA, or 'literal' is specified, label is not valid, and specification of a label will result in an error message. If a DPN, PRN, RDPN, or RPRN dfldname is specified on the DIV statement, the dfldname cannot be used as a DFLD label for the current DIV statement.

PASSWORD
Identifies this field as the location of the IMS password field for input messages.

IMS supports mixed case or upper case passwords.

Tip: Use the PASSWORD capability in the input message definition. If you specify PASSWORD you cannot refer to the field described by this DFLD statement with a message descriptor. Additionally, if you specify PASSWORD you must omit label.
'literal'
Specifies a literal character string to be presented to the device. The length of literal cannot exceed 256 bytes for 3270 display devices, 40 bytes for FIDS and FIDS3, 64 bytes for FIDS4, 80 bytes for FID57, 256 bytes for 3270P, and line width for all printer and punch devices. For DPM, the length of literal cannot exceed the value specified in the RCDCTL operand.

For 3270 displays, literal fields have the PROT attribute whether specified or not; the NUM attribute is assumed if ALPHA is not specified.

Restriction: If you specify literal you cannot refer to the field described by this DFLD statement with a message descriptor. Additionally, if you specify literal you must omit label.
SCA
Specifies, for DPM definitions only, that SCA information, when sent by the IMS application program or specified in the DSCA, is to be sent in this DFLD.

If SCA is specified, label must not be specified.

POS=
Defines the first data position of this field in terms of line (lll), column (ccc), and physical page (pp) of the display format. If pp is omitted, 1 is assumed.

For DEV TYPE=FIN,FIDS,FIDS3,FIDS4, FIDS7,FIJP,FIPB,FIFP,SCS1, or SCS2

lll,ccc
Specifies the record number and position within the record of this field. This form is required if MODE=RECORD. lll and ccc must be greater than or equal to 1.
nnn
Specifies the starting position of this field in STREAM mode input. If not specified, this field starts immediately following the preceding field, or at the left margin if this is the first field. If MODE=STREAM has been specified, and POS= is specified, this form is required. nnn must be greater than or equal to 1.
lll,ccc,pp
Specifies the line, column, and optionally, the physical page number for an output field. lll, ccc, and pp must be greater than or equal to 1.

For DEV TYPE=3270, 3270-An, or 3270P

lll,ccc,pp
Specifies the line, column, and optionally, the physical page number for an output field. lll, ccc, and pp must be greater than or equal to 1.

For 3270 displays, POS=(1,1) must not be specified. Fields must not be defined such that they wrap from the bottom to the top.

Restriction: On some models of 3270s, the display screen cannot be copied when a field starting on line 1, column 2, has both alphabetic and protect attributes.

For DEV TYPE=DPM-An or DPM-Bn

For DPM devices
The POS= keyword is ignored.
LTH=
Specifies the length of the field. This operand should be omitted if 'literal' is specified in the positional parameter, in which case the length of literal is used as the field length. Unpredictable output formatting can occur if this operand is used in conjunction with a 'literal' and the two lengths are different. The specified LTH= cannot exceed the physical page size of the device.

The maximum allowable length for all devices except 3270, 3604 display, and DPM with RCDCT=NOSPAN is 8000 characters. For 3270 displays, the maximum length is one less than screen size. For example, for a 480-character display, the maximum length is 479 characters. For a FIDS display component, the maximum length is 240 characters; for a FIDS3, the maximum length is 480 characters; for a FIDS4, the maximum length is 1024 characters; for a FIDS7, the maximum length is 1920. A length of 0 must not be specified. For DPM, if RCDCT=NOSPAN is specified, the length must be less than or equal to the RCDCTL value, if RCDCTL is less than 8000. If SCA and LTH= are both specified, LTH must be 2.

POS= and LTH= do not include the attribute character position reserved for a 3270 display device or a DFLD with ATTR=YES specified. The inclusion of this byte in the design of display/printer formats is necessary because it occupies the screen/printed page position preceding each displayed/printed field even though it is not accessible by an application program.

When defining DFLDs for 3270 printers, a hardware ATTRIBUTE character is not used. Therefore, fields must be defined with a juxtaposition that does not allow for the attribute character unless ATTR=YES is specified. However, for printers defined as 3270P the last column of a print line (based on FEAT=, WIDTH=, or the device default width) cannot be used. The last column of the line is reserved for carriage control operations performed by IMS. Thus, if the print line specifies 120 (FEAT=120) and the DFLD specifies POS=(1,1),LTH=120 then 119 characters are printed on line 1 and one character on line 2.

For DPM definitions, if OPTIONS=NOSIM2 is specified on the DIV statement, and ATTR=YES or YES,nn is specified, 2 bytes plus the extended attributes are added to the length of the DFLD. The first two bytes are reserved for the binary 3270 attribute, (protect, numeric, and so forth.) If OPTIONS=SIM is specified, 1 byte or 1 byte plus the extended attributes is added to the length of the DFLD with ATTR=YES or YES,nn. The first byte of the field is thus reserved for the simulated attribute.

Detectable fields (DET or IDET) must include four positions in POS and LTH for a 1-byte detection designator character and 3 pad characters, unless the detectable field is the last field on a display line, in which case only one position for the detection designator character is required. The detection designator character must precede field data, and pad characters (if required) follow field data. Detection designator and required pad characters must be supplied by the application program or MFLD literal with the field data. Pad characters can also be required in the preceding field on the device.

ATTR=
Defines the display attributes of this field for each of the listed DEV TYPE, DIV TYPE combinations:
  • For DEV TYPE=3270 or 3270-An

    Attribute keywords can be specified in any order and only those desired need be specified. The underlined keywords do not have to be specified, because they are defaults.

    When two user-defined fields are separated by two or more characters, MFS generates an undefined field to represent that space in the display buffer. The display attributes for an undefined field are NUM, PROT, and NODISP.

    ALPHA | NUM
    Specifies whether the field should have the numeric attribute. The numeric attribute specifies that the Numeric Lock feature (automatic upshift of data entry keyboard) will be used by the 3275/3277 or 3276/3278. If NUM and PROT are specified for the field, the auto-skip feature is used. That is, upon entry of a character into the last character location of an unprotected field, the cursor automatically skips the field with the NUM and PROT attribute specifications and is positioned to the first character location of the next unprotected field. If an undefined field, as described in the ATTR= parameter, follows the filled unprotected field, the auto-skip feature is used. This parameter, in conjunction with the PROT parameter, is used to lock the COPY function. See "PROT" for details.
    NOPROT | PROT
    Specifies whether the field is protected from modification by you. For literal fields, PROT is used and specification of NOPROT is ignored.

    The IMS copy function on remote 3270 terminals can be locked by setting the attribute value of protect and alpha for an attribute byte in line 1 and column 1 of a display. When the copy function is locked, it cannot be used to copy the contents of a display to a printer. The Local Copy Function available on the 3274 and 3276 control units is not locked by the attribute setting. The Local Copy Function is invoked by the print key.

    NODET|DET|IDET
    Specifies the detectability of the field through light pen operations. DET specifies a deferred detectable field, while IDET indicates an immediately detectable field. You must provide appropriate designator and pad characters as discussed under the LTH= operand. Note that the 3270 display devices place restrictions on the number of detectable or mixed detectable and nondetectable fields that can precede that last detectable field on a given line.
    NORM|NODISP|HI
    Specifies the field's display intensity as normal (NORM), high intensity (HI), or nondisplayable (NODISP). If NODISP is specified, DET or IDET cannot be specified.

    When defining a high-intensity (HI) field, including a detection designator character as the first data byte causes the high-intensity (HI) field to be detectable.

    NOMOD|MOD
    defines whether or not the field-modified-attribute byte should be assumed for this field. MOD causes the terminal to assume the field has been modified by you even though it was not (that is, the modified data tag (MDT) is set in the field-modified-attribute byte). This should not be confused with the PROT attribute which prevents modification by you. MOD is ignored for literal fields.

    When MOD is specified, each time MFS sends output for this physical page, the modified attribute is set (unless overridden by dynamic attribute modification).

    STRIP|NOSTRIP
    Specifies whether the pen detect designator byte preceding the input field should be stripped (STRIP) before presentation to the application program. If an EGCS attribute is defined for a light-pen-detectable field, you should specify ATTR=NOSTRIP on the DFLD statement and design the application program to bypass or remove the two designator characters from the input data. If ATTR=STRIP is specified or defaulted, MFS will only remove the first designator character and the last character in the field could be lost (truncated).
  • For DIV TYPE=OUTPUT and DEV TYPE=3270P, FIDS, FIDS3, FIDS4, FIDS7, FIFP, FIJP, FIPB, FIS1, or SCS2

    Attribute keywords specify whether (YES) or not (NO) the first byte of this field will be used to display attribute information when the output message includes attribute information for the field. The default is NO. If ATTR=YES is specified, the LTH= and POS= keywords do not have to allow for the simulated attribute byte because the MFS preprocessor adjusts the keyword values internally. The action taken when ATTR=YES is specified is:

    CURSOR
    (FIDS, FIDS3, FIDS4, and FIDS7 ABSOLUTE output only). The cursor will be positioned to the first position of this field.
    NODISP
    No data sent regardless of other attributes
    HI
    An asterisk (*) is placed in the first byte
    MODIFIED
    An underscore character (_) is placed in the first byte
    HI and MODIFIED
    An exclamation point (!) is placed in the first byte

    If attribute information is not provided from the output message, the first byte is a blank.

  • For DIV TYPE=OUTPUT, DEV TYPE=DPM-An, and DEV TYPE=DPM-Bn, 3270P, FIDS, FIDS3, FIDS4, FIDS7, FIFP, FIJP, FIPB, FIS1, or SCS2
    Attribute keywords specify whether (YES) or not (NO) the first one or two bytes of this field carries existing 3270 attributes and whether extended attributes (nn) are present. The keywords can be used in various combinations as follows:
    YES
    Specifies that the first one or two bytes of this field are used to convey the existing 3270 attributes (in simulated or binary form depending upon the specification of SIM or NOSIM2 respectively on the DIV statement) from the IMS application program to the remote program. (SIM causes MFS to simulate an attribute. NOSIM2 causes MFS to pass the bits exactly as entered.)

    Thus, if ATTR=YES is specified and OPTIONS=SIM or OPTIONS= is not specified, one byte is added to the length of the DFLD. If OPTIONS=NOSIM2, two bytes are added to the length of the DFLD. These bytes are reserved as the attribute bytes to be transmitted to the remote program.

    NO
    Specifies that the first one or two bytes of this field will not be used to convey the existing 3270 attributes (in simulated or binary form respectively) from the IMS application program to the remote program. This is the default.
    nn
    Is the number of extended attributes that can be dynamically modified, and is a number from 1 to 4. An invalid specification is defaulted to 1. Two additional bytes are added to the length of the DFLD for each attribute specified (2 x nn). The additional bytes, which just precede the data, either can (YES) or must not (NO) follow the bytes reserved for the existing 3270 attribute bytes. These bytes are used to convey the extended attributes (in binary form) from the IMS application program to the remote program. The attributes are always transmitted as presented from the IMS application program. They are never simulated or validated.
    YES,nn
    When used in combination, YES,nn specifies that both attributes and extended attributes are to be transmitted. In this case, and depending upon the specification of SIM and NOSIM2 as described:.

    When specified with SIM, specifies that 3270 simulated attributes (1 byte) plus extended attributes (2 x nn bytes) of this field are to be transmitted from the IMS application program to the remote program. The total number of bytes used to convey all of these attributes to the remote program is 1 + (2 x nn)

    When specified with NOSIM2, specifies that 3270 attributes in binary form (2 bytes) plus extended attributes (2 x nn bytes) of this field are to be transmitted from the IMS application program to the remote program. The total number of bytes used to convey all of these attributes, which are all in binary form, to the remote program is 2 + (2 x nn).

    NO,nn
    When used in combination, NO,nn specifies that only extended attributes are transmitted. Thus, the number of bytes transmitted, in binary form, is (2 x nn) only.

    Valid specifications and the number of bytes that must be reserved are:

    For  DIV ,OPTION=NOSIM2  then:
    DFLD    ,ATTR=(YES,nn)     2 + (2 × nn)
    DFLD    ,ATTR=(NO,nn)      2 × nn
    DFLD    ,ATTR=(,nn)        2 × nn
    DFLD    ,ATTR=YES          2
    DFLD    ,ATTR=NO           0
    For  DIV ,OPTION=SIM or not specified  then:
    DFLD    ,ATTR=(YES,nn)     1 + (2 × nn)
    DFLD    ,ATTR=(NO,nn)      2 × nn
    DFLD    ,ATTR=YES          1
    DFLD    ,ATTR=NO           0
EATTR=
Is valid for output DFLDs only and defines the extended attributes of this field for DEV TYPE=3270, 3270-An, 3270P, or SCS1.

Not all extended attributes apply to all device types. To ensure that your specifications for your device types are correct, refer to the component description manual for your device.

The operands specify:

  • Additional field highlighting
  • Field color
  • Field outlining
  • Input control
  • Validation to be performed
  • Local ID of the programmed symbol buffer

Characters are selected from the programmed symbol buffer and placed in the field. These operands can be specified in any order. When the device default value is selected for an operand, it is used to hold a place in the data stream to permit application program modification of the attribute so specified.

To specify the additional highlighting for the field use the following:

HD
device default
HBLINK
blink
HREV
reverse video
HUL
underline

To specify the field's color use the following:

  • BLUE
  • RED
  • PINK
  • GREEN
  • TURQ(uoise)
  • YELLOW
  • CD
  • NEUTRAL

The last two operands are used as follows:

CD
Used to specify the default.
NEUTRAL
Used to specify device-dependent. The particular color displayed for NEUTRAL is device-dependent. In general, NEUTRAL is white on displays and black on printers with single-plane programmed symbols and as multicolored on displays or printers with tri-plane programmed symbols.

The following five operands—PX'00', PX'hh', PC'c', EGCS, and EGCS'hh'—are mutually exclusive. That is, a field can be specified as having one of these characteristics, but not a combination thereof. For all 3270 devices, MFS does not verify that any specified character set has been properly loaded. The programmed symbol buffers can be loaded by an IMS application program using the MFS bypass.

PX'00'|PX'hh'|PC'c'
Specifies a value that must correspond to the local ID specified for a programmed symbol buffer already loaded or to the EGCS programmed symbol buffer.
PX'00'
Is the same as no specification, except that it allows an application program to specify a programmed symbol buffer for the field through dynamic modification of the programmed symbol attribute.
PX'hh'
Is a hexadecimal character in the range X'40' through X'FE'.
PC'c'
Is a hexadecimal character within the range X'40' through X'FE'.
EGCS|EGCS'hh'
Is valid only on output DFLDs for the 3270 display. SCS1 device types can specify EGCS only and not EGCS 'hh'.

When an extended graphic character set literal is specified on a DFLD statement, the extended graphic character set attribute is forced—that is, you do not have to code EATTR=EGCS'hh' for 3270 displays or EATTR=EGCS for SCS1 device types. For 3270 displays, a programmed symbol value of X'F8' is set.

Restriction: The IMS application program cannot modify the SCS1 DFLD extended graphic character set attribute.

When defining an EGCS field for a 3283 Model 52, the length must be an even number. If the EGCS field spans device lines, WIDTH= and POS= should be specified so that an even number of print positions are reserved on each of the device lines.

EGCS
Specifies the field attribute for the field as Extended Graphic Character Set. Also specifies the field attribute for the field as Double Byte Character Set.
EGCS'hh'
'hh' is the programmed symbol value that is used. The value for 'hh' can be any hexadecimal value from X'40' through X'FE' or X'00'. If 'hh' is omitted from the extended graphic character set specification for a 3270 display, a programmed symbol value of X'F8' is assumed. 'hh' is ignored if specified for an SCS1 device.

To define an EBCDIC field that can be dynamically modified by the IMS application program to accept extended graphic character set data, the programmed symbol attribute should be specified as EGCS'00'.

VDFLD|VMFILL|VMFLD|VMFILL,VMFLD
Defines the type of validation for the field as follows:
VDFLD
Default
VMFILL
Mandatory fill
VMFLD
Mandatory field
VMFILL,VMFLD
A combination of mandatory fill and mandatory field

If a field is defined as protected (ATTR=PROT) or if it is a literal with validation attributes specified, then the validation attribute specifications are reset and a message is issued.

The following are used to specify field outlining:

OUTL'hh'
Field outlining with field outlining value 'hh'
OUTL
Device default
BOX
Box
RIGHT, LEFT, UNDER, OVER
Lines that can be specified individually or in combination

Field outlining value 'hh' is a two-digit hexadecimal number between X'00' and X'0F'. If any other value is specified, the device default, X'00', is assumed. The following table shows the values for the field outlining patterns.

Table 1. Field outlining values
Value UNDER RIGHT OVER LEFT
00        
01 X      
02   X    
03 X X    
04     X  
05 X   X  
06   X X  
07 X X X  
08       X
09 X     X
0A   X   X
0B X X   X
0C     X X
0D X   X X
0E   X X X
0F X X X X

Field outlining for 3270 displays and SCS1 printers can be dynamically modified by code in an application program. The position of left, right, over, and underlines differ according to the device.

The following is a brief description of field outlining for the IBM® 5550 family (as 3270) of devices.

3270 display
Left and right lines are printed in the position of the 3270 basic attribute byte. The overline of the current line and the underline of the preceding line are the same line.

The underline for the 24th line is the same line as the line separating the application program area and your message area.

SCS1 printer
Left and right lines are printed in the byte reserved by MFS before and after the current field. The overline of the current line and the underline of the preceding line are the same line. When an underline is specified in the last line of the page, an underline is drawn in the last line of the page, and an overline is drawn on the first line of the next page.

If one byte space exists between two adjacent fields, the right line of the first field is the same line as the left line of the second field.

MIX|MIXD|MIX'nn'|MIXS|MIXS'nn'
Specify a DBCS/EBCDIC mixed field.
3270 display
MIX
DBCS/EBCDIC mixed field
MIXD
device default

Input control for the 3270 display can be dynamically modified by the application program.

SCS1 printer
MIX
DBCS/EBCDIC mixed field with SO/SI blank print option.
MIXS
DBCS/EBCDIC mixed field with SO/SI blank print suppress option.
MIX'nn'
'nn' is the maximum number of SO/SI pairs. DBCS/EBCDIC mixed field with SO/SI blank print option.
MIXS'nn'
'nn' is the maximum number of SO/SI pairs. DBCS/EBCDIC mixed field with SO/SI blank print suppress option.

The 'nn' is buffer information used by MFS message editor and must be a two-digit decimal number between 01 and 31. If MIX or MIXS is specified, the MFS default is calculated as follows:

MIX
DFLD length divided by 5 plus 1, or 31, whichever is smaller.
MIXS
DFLD length divided by 3 plus 1, or 31, whichever is smaller.

When a field spans continuation lines, the number 'nn' obtained from the field length with either of the methods plus 1, is assigned to each line.

With the SCS1 printer, when DBCS/EBCDIC mixed data spanning across continuation lines is split at a DBCS character, MFS replaces the last character with a blank and places that character at the beginning of the next line. As a result, one print position is lost.

PEN=
Specifies a literal to be selected or an operator control function to be performed when this field is detected. If (1) 'literal' is specified, (2) the field is defined as immediately detectable (ATTR= operand), and (3) contains the null or space designator character, the specified literal is placed in the field referred to by the PEN operand of the preceding DEV statement when the field is detected (if no other device fields are modified). If another field on the device is modified, a question mark (?) is provided instead of the literal. Literal length must not exceed 256 bytes.

If (1) a control function is specified, (2) the field is defined as immediately detectable (ATTR= operand), and (3) contains the null or space designator character, the specified control function is performed when the field is detected and no other device fields are modified. If another field on the device is modified, a question mark (?) is provided and the function is not performed. Control functions that can be specified are:

NEXTPP—PAGE ADVANCE
Specifies a request for the next physical page in the current output message. If no output message is in progress, no explicit response is made.
NEXTMSG—MESSAGE ADVANCE
specifies a request to dequeue the output message in progress (if any) and to send the next output message in the queue (if any).
NEXTMSGP—MESSAGE ADVANCE PROTECT
Specifies a request to dequeue the output message in progress (if any), and send the next output message or return an information message indicating that no next message exists.
NEXTLP—NEXT LOGICAL PAGE
Specifies a request for the next logical page of the current message.
ENDMPPI—END MULTIPLE PAGE INPUT
Specifies the end of a multiple physical page input message.

ENDMPPI is valid only if data has been received and will not terminate multiple page input (MPPI) in the absence of data entry.

OPCTL=
Specifies the name of a table, defined by a TABLE statement, that is to be checked for operator control requests when this device field is received. OPCTL processing occurs when the input device data is processed. If a control function is selected, in most cases the control function is performed immediately; no IMS input message is created.
SLDI=
For SCS1 printers, specifies the line density for an output message in lines per inch. (See also SLDP=.) SLDI= can also be specified on the DEV statement. SLDI= is validated for a value from 1 through 72. The value specified must be consistent with the architecture of the device for which this value is specified (see the appropriate device or component manual).

If SLDI= is specified both on the DEV statement and the DFLD statement, two SLD data streams are created. One is sent at the beginning of a message to set the line density. The second is sent within the message, just prior to the field on which the SLDI= specification is encountered, but after any vertical tabs and new line characters. The SLDI= specification within the message changes the line density from that set at the beginning of the message, and this latter line density remains in effect until explicitly reset.

SLDP=
For SCS1 printers, specifies the line density for an output message in points per inch. (See also SLDI=.) SLDP= can also be specified on the DEV statement. SLDP= is validated for a value from 1 through 72. The value specified must be consistent with the architecture of the device for which this value is specified (see the appropriate device or component manual).

If SLDP= is specified both on the DEV statement and the DFLD statement, two SLD data streams are created. One is sent at the beginning of a message to set the line density. The second is sent within the message, just prior to the field on which the SLDP= specification is encountered, but after any vertical tabs and new line characters. The SLDP= specification within the message changes the line density from that set at the beginning of the message, and this latter line density remains in effect until explicitly reset.

Attention: Be careful, when defining set line density (SLDx) keywords, to ensure that forms alignment is maintained. If SLDx= is improperly defined, the forms might not align properly. Also, note that SLDI= and SLDP= are mutually exclusive. Neither SLDI= nor SLDP= can occur on a DFLD statement between a DO and an ENDDO statement.