IBM Support

String function and concatenation

Troubleshooting


Problem

If there are two string columns in a table and you need to concatenate them, is it possible to maintain the spaces between the two sets of numbers? For example, column 1 is 5 bytes long, and column 3 is 3 bytes. When the + or CONCAT functions are used, they both seem to have the effect of a trim-trailing on column 1. Example: col 1 = AAA (but it's 5 bytes long) col 2 = BB result = AAABB Desired result = AAA BB

[{"Product":{"code":"SSTQPQ","label":"IBM Cognos Series 7 PowerPlay"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Impromptu","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Impromptu 5.0","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

80709

Document Information

Modified date:
09 May 2025

UID

swg21354336