Generating customized HTML templates
You can customize HTML templates generated from
BMS maps in three ways.
Attention: This topic contains Product-sensitive
Programming Interface and Associated Guidance Information.
About this task
You can customize your templates in these 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 in the BMS map definitions
- You can manually edit the generated HTML:
- To override the dynamic changes to attributes that take place when a program issues a MAP SEND command
- To use the HTML template outside the web 3270 environment.
Do not edit CICS-generated HTML templates unless all your SEND MAP commands use the ERASE option. SEND MAP commands without ERASE result in merging of HTML. Runtime logic is expecting to encounter HTML that was generated by the CICS template generator. In particular, avoid making changes to <tr> tags.
For examples of customized templates, see Customization examples.
CICS® provides
HTML templates for the CETR CICS-supplied transaction, which uses
BMS. The templates 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.