In this article we are going to discuss about the Basic Macro Support (BMS) that is used for the creation of CICS screens. This Macros are also called as Assembler Macros.

PRINT NOGEN – This Macro is used to turn off the printing of the expansion of BMS Macros in the Assembler Listing.

END – It is the last statement Mapset Source code.

DFHMSD – Defines a new Mapset which consist of a collection of Maps.

DFHMDI – Defines a new Map which is a collection of Fields.

DFHMDF – Defines a new field.

DFHMSD TYPE = FINAL – It is used to indicate that a Mapset has come to an and is coded as the last Map.

DFHMSD to define a new Mapset:

DFHMSD

The MAPSET name must be a unique name and can be between 1-8 characters.

TYPE – Specifies what happens when BMS Map code is assembled. DSECT is used to generate a symbolic map while MAP is used to generate physical map. &SYSPARM is used to generate both physical and symbolic map.

LANG – The language in which symbolic map will be generated. In our case, it is COBOL.

MODE – It indicates the type of variables. INOUT means both input and output COBOL variables.

TERM – Type of Terminal. Usually, it is given as ALL.

CTRL – Used to specify the control options used by all the Maps in the Mapset.

FRREKB – It is used to avoid keyboard from being in locked state when a Map is displayed on the screen.

DSATTS (Symbolic Map) / MAPATTS (Physical Map) – Used to specify which extended attribute will be supported. Example : Color of field.

TIOAPEX – A 12 byte filler item is included at the beginning of symbolic map. For Cobol, TIOAPEX=YES.

 DFHMDI to define a new MAP:

DFHMDF

SIZE – Size of Map in terms of number of rows and columns. Usually, the standard size is 24×80.

LINE – Specifies row number where MAP actually starts.

COLUMN – Specifies column number.

DFHMDF to define a new field:

DFHMDI

For data entry fields alone, two Macros has to be defined. One for the attribute that indicates the end of the data entry field. A unique field name has to be assigned for the field.

POS – It is used to specify the co-ordinates of the field in terms of row number and column number.

LENGTH – This parameter specifies the length of the data in the field. Suppose, the data to be entered is of length, in actual, it will occupy 9 screen positions including the attribute byte.

ATTRB – specifies the attributes of the field. More about attributes is described in the article CICS Map – Creation and Assembling. IC (Initial Cursor) parameter in ATTRB places the cursor at the start of the field when the Map is displayed at the screen.

COLOR – It specifies the color of the field.

PICIN and PICOUT – Specifies the picture clause for the input and output COBOL variables in the symbolic map.

 

Basic Macro Support – Creation of CICS Screens
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *