CICS DFHMDF MacroCICS DFHMDI Macro CICS Commands Coding
Specifies to define a field with its characteristics in a map.
There will be multiple number of DFHMDF entries in DFHMDI.
DFHMDI will have the one to one entry of the field in the MAP.
Some of the important characteristics of DFHMDF are below.
Specifies the field characteristics and attributes.
All input and output fields can be prefixed by one byte attribute.
The attributes are:
ASKIP specifies that can’t able to enter the data into the field.
When user enters tab from previous field, control will skip the field because of ASKIP attribute and places control to next field.
The cursor automatically skipped to next field and user can’t able to enter the data.
PROT Specifies that data can’t be enter into the field.
But cursor can be placed on the same field.
PROT is coded for output and stopper fields.
UNPROT is coded for input-output fields.
FSET set MDT tag when the MAP sending to screen and used to check whether the particular field is modified or not.
Even the field modified or not, MDT will return to the application program and uses for validation of the field medication.
What is MDT?
1. MDT is one bit field of the attribute byte.
2. There are only ON(1) and OFF(0) values for MDT.
3. The program can receive only the fields with MDT ‘1’ on RECEIVE.
4. If the user modifies the field then MDT of the field is automatically set to ON and receives by the application program.
Only numeric fields allowed. i.e. 0-9, period and – are the only allowed characters.
It will not allow any alphanumeric characters.
BRT specifies the field should be highlighted with high intensity.
NORM specifies the field should be highlighted with normal intensity.
DRK specifies the field is not displayed or not printed.
Used to specify where the cursor needs to be placed when the MAP thrown on the screen.
By default IC can be placed on the first field of the screen.
If IC specified to any single field, then the CURSOR will be placed on the field where IC specified.
If IC can be coded with more than one field, then all will be ignored and the cursor will be placed at the first field.
What is CURSOR positioning?
CURSOR positioning is process of placing a cursor on the screen when the screen displayed on the screen or SEND MAP command executes.
Normally the CUSOR positioning can be done in three ways.
1. Static positioning:
By using IC, user can set the cursor positioning before map sent to screen.
2. Symbolic positioning:
Moving -1 to length of the field where the cursor needs to be placed and send the map with CURSOR option.
This process needs to be done through program.
This method used to control the cursor position dynamically.
3. Cursor position:
A half word binary field used to send the offset of cursor position in the screen.
Offset of cursor position will be sent in EIBPOSN of DFHEIBLK to the screen when the data was transferred from the program to the terminal.
What are the types of attribute setting?
There are two ways of attribute setting to the fields.
1. Static attribute setting: Setting attributes during the MAP creation.
2. Dynamic attribute setting: Setting attributes in the application program before sending MAP to display on screen.
Specifies the length of the field.
Length of the field can be 0 through 256 bytes.
Length only required when PICOUT option specifies.
Specify the field to be positioned for input.
LEFT specifies that the data in the input field is left justified.
RIGHT specifies that the data in the input field is right justified.
BLANK specifies that blanks are to be inserted in the unfilled positions of the field.
ZERO specifies that zeroes are to be inserted in the unfilled positions of the field.
specifies the input field picture clause of the particular field for the symbolic map.
specifies the output field picture clause of the particular field for the symbolic map.
Used to specify the positions of the field on the MAP.
POS can be determined by using two arguments: Line and Columns.
Used to specify the default value of the field which required to display during the first display of the MAP on the screen.
When the MAP is sent first time, this value will appear in the field.
If any questions on the above, post your queries on CICS Discussion forum
CICS DFHMDI Macro CICS Commands Coding