Hi Nick,
U can probably set the environment variable APT_STRING_PAD_CHAR to the char which you want to be used for padding instead of null.By default DS will pad string with null.HTH
Pad string with char fields
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 15
- Joined: Wed May 26, 2004 6:30 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
"Pad with null" is unfortunate terminology. It actually pads with the ASCII NUL character (0x00), which is different from null (unknown value). Since C recognizes 0x00 as "end of string", this default is entirely appropriate.
If you've put space characters (0x20) into your string, they should be handled correctly under default settings.
If you've put space characters (0x20) into your string, they should be handled correctly under default settings.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.