Hints on coding the macros
You can improve the performance of data conversion by coding your macros to benefit from the way in which CICS processes the conversion tables.
- Define entries for the most frequently-used resources first, to reduce search time.
- Define USERDATA fields in consecutive entries. This reduces the time needed by your conversion program to scan the template.
- For variable-length fields, define the maximum length required. (Comparisons and conversions are applied to the shorter of the actual data length or the template length. For example, if the data is 100 bytes long but the template describes 120 bytes, up to 100 bytes are converted. If the data is 100 bytes and the template describes 80 bytes, only 80 bytes are converted.)
- If function-shipped data is not accessed by CICS® Transaction Server for z/OS® but only by the connected system, you do not need to specify conversion details. For example, when a CICS Transaction Server for z/OS file is used to store data that is shared by several ASCII-based systems.