Microsoft KB Archive/329300

= INF: Avoiding Data Translation in COMTI =

Article ID: 329300

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft COM Transaction Integrator for CICS and IMS 1.0
 * Microsoft Host Integration Server 2000 Standard Edition

-



This article was previously published under Q329300



SUMMARY
In some circumstances, you may want the COM Transaction Integrator (COMTI) runtime to pass untranslated data to or from the mainframe. To do this, set up an array of PIC X Untranslated bytes.



MORE INFORMATION
COMTI supports many data types, however, you may not always want COMTI to translate or interpret the data.

To configure a byte array of PIC X Untranslated bytes, follow these steps:
 * 1) Open the COMTI Component Builder.
 * 2) Unlock the COMTI component.
 * 3) Select the properties for the parameter that you want to change.
 * 4) On the Automation tab, set the data type to Byte.
 * 5) On the COBOL Definition tab, set the COBOL Definition to PIC X Untranslated.
 * 6) On the Arrays tab, set the array to be a Single Dimension Array, and set the maximum size of the array equal to the expected number of bytes.
 * 7) Lock the component.

After the last step is complete, COMTI will pass the bytes in the array to the calling program as untranslated binary data.

NOTE: Because COMTI passes the bytes as untranslated binary data, the interface program must take into account the newly modified parameter.

You can use this procedure if, for example, the characters coming from or going to the host are outside the range of the translation table. By following the steps earlier in this section, you can implement a custom translation table in code that handles the data.

If a variable-sized array is to be transferred, follow these steps:
 * 1) Set the array size to the maximum number of characters ever to be exchanged.
 * 2) On the Advanced tab of the method properties, set the Data buffer options as follows:
 * 3) * Final field from host is Bounded.
 * 4) * Final field to host is Bounded.

