Substitution markers enable you to pass variable data from your COBOL program directly into HTML output by coding specifications into your embedded HTML markup.
:cobol-data-name
:group-data-name.elementary-data-name
| !important | border-top-style | margin-bottom |
| @font-face | border-top-width | margin-left |
| @import | border-width | margin-right |
| active | clear | margin-top |
| background | clip | overflow |
| background-attachment | color | padding |
| background-color | cursor | padding-bottom |
| background-image | display | padding-left |
| background-position | filter | padding-right |
| background-repeat | float | padding-top |
| border | font | page-break-after |
| border-bottom | font-family | page-break-before |
| border-bottom-color | font-size | position |
| border-bottom-style | font-style | text-align |
| border-bottom-width | font-variant | text-decoration |
| border-color | font-weight | text-indent |
| border-left | height | text-transform |
| border-left-color | hover | top |
| border-left-style | left | vertical-align |
| border-left-width | letter-spacing | visibility |
| border-right | line-height | visited |
| border-right-color | link | white-space |
| border-right-style | list-style | width |
| border-right-width | list-style-image | word-spacing |
| border-style | list-style-position | z-index |
| border-top | list-style-type | |
| border-top-color | margin |
working-storage section.
01 acct-code pic 9(8).
...
procedure division.
...
*> First colon is followed by a space, so it is
*> not treated as a substitution marker by
*> EXEC HTML. Second colon is followed by a
*> data-name, so it is treated as a
*> substitution marker. The third colon is preceded
*> by a backslash, so it is treated as a colon
EXEC HTML
Account Code: :acct-code <BR>
\:acct-code
END-EXEC
working-storage section.
01 customer.
03 name pic x(80).
03 acct-code pic 9(8).
...
procedure division.
...
*> customer.acct-code equivalent inside EXEC HTML
*> block to acct-code of customer in COBOL source.
EXEC HTML
Account Code: :customer.acct-code <BR>
END-EXEC
working-storage section.
01 acct-code pic 9(8).
...
procedure division.
...
*> Reference modification outputs first four characters of
*> acct-code.
EXEC HTML
Account Code: :acct-code(1:4) <BR>
END-EXEC