Coding to extract last characters
There is a transformation from DSO_1 to DSO_2.
DSO_1 has an InfoObject CO_ITEMTX which contains text information for CO items, e.g.:
*DBD_G004 7026592.00 ABC-DE
DSO_2 needs the last char after the last space of this text information, in our example: ABC-DE.
The length of the last char can vary, e.g.:
*ABD_G004 7026552.00 ABCX-DDE
What is the correct coding?
Gabriele Nosatti replied
you can split the text at space character using the SPLIT statement.
SPLIT <result_fields>-CO_ITEMTX AT SPACE INTO dummy1 dummy2 var_field.
The var_field contains the value you're looking for. This works if you know the text has three section and the information you need is in the last section.