Announcement: New Design for docs.informatica.com!
We have updated the look and feel of docs.informatica.com. To load the latest design, press CTRL-F5 to clear the pages you previously cached on our site, or simply restart your browser.
Use the length functions when you want the procedure to access the length of a string or binary input port, or to set the length of a binary or string output port.
Use the following length functions:
INFA_CTGetLength().
Use this function for string and binary ports only. The Integration Service returns the length as the number of characters including trailing spaces. Use the following syntax:
The return value datatype is INFA_UINT32. Use a value between zero and 2GB for the return value.
INFA_CTSetLength().
When the Custom transformation contains a binary or string output port, you must use this function to set the length of the data, including trailing spaces. Verify you the length you set for string and binary ports is not greater than the precision for that port. If you set the length greater than the port precision, you get unexpected results. For example, the session may fail.