Generating customized HTML templates

Attention: This topic contains Product-sensitive Programming Interface and Associated Guidance Information.
You can customize HTML templates generated from BMS maps in three ways:
  • You can modify the way HTML templates are generated from BMS maps by coding your own version of the DFHMSX macro.
  • You can add HTML text to the generated map by using the DFHWBOUT macro within the BMS map definitions
  • You can manually edit the generated HTML. This is useful when:
    • you want to override the dynamic changes to attributes which take place when a program issues a MAP SEND command
    • you want to use the HTML template outside the Web 3270 environment.
    In both cases, you will need to change the Frrcccllll variables which are added by the template generation process.

Start of changeYou are strongly recommended to avoid editing CICSgenerated HTML templates unless all your SEND MAP commands use the ERASE option. SEND MAP commands without ERASE will result in merging of HTML during CICS runtime. Runtime logic is expecting to encounter HTML which was generated by the CICS template generator. In particular you should avoid making changes to <tr> tags.End of change

For examples of customized templates, see Customization examples.

CICS® provides HTML templates for the following CICS-supplied transaction that uses BMS:
  • CETR
The templates provided use the EBCDIC Latin character set (code page 037). If you use a different code page in your CICS system, you must generate your own version of these templates: the following characters used in the CICS-generated heading section have different representations in code pages other than 037:
! [ ] { }
Use the CODEPAGE parameter on the DFHMDX macro to specify the code page.