Good morning all,
I've the following problem:
My cobol retrieve a field from a table and value of this field is a text note that could contain line breaks.
I need to remove the line breaks from the retrieved value and change it into a character value as "-".
I tried doing the following:
INSPECT WS-TEXT REPLACING ALL X"15" BY "-" or
INSPECT WS-TEXT REPLACING ALL X"7B" BY "-"
but in both cases it doesn't work.Debugging this line no changes are applied to WS-TEXT.
Does anyone know which is the element corresponding with line break(X"7B" or X??) and if inspect command can be used?
Thanks and I hope you can help me.
I've the following problem:
My cobol retrieve a field from a table and value of this field is a text note that could contain line breaks.
I need to remove the line breaks from the retrieved value and change it into a character value as "-".
I tried doing the following:
INSPECT WS-TEXT REPLACING ALL X"15" BY "-" or
INSPECT WS-TEXT REPLACING ALL X"7B" BY "-"
but in both cases it doesn't work.Debugging this line no changes are applied to WS-TEXT.
Does anyone know which is the element corresponding with line break(X"7B" or X??) and if inspect command can be used?
Thanks and I hope you can help me.