Suppressing variables
Posted: Thu Apr 18, 2013 4:49 pm
hi guys,
Need your help.
i have the below code.
05 WS-SYMBOL.
10 FILLER PIC X(08)
VALUE '<symbol>'.
10 symbol pic X(12).
10 FILLER PIC X(09)
VALUE '</symbol>'.
.........
........
MOVE ''ÁBCDE' TO symbol...
The output will be
output file :<symbol>ABCDE </symbol>
Here the value ABCDE followed by 7 spaces is moved between the tags. Is there any way to supress the spaces.. ideally the output i require needs to be as below.
<symbol>ABCDE</symbol>.
Please share your ideas. thanks
Need your help.
i have the below code.
05 WS-SYMBOL.
10 FILLER PIC X(08)
VALUE '<symbol>'.
10 symbol pic X(12).
10 FILLER PIC X(09)
VALUE '</symbol>'.
.........
........
MOVE ''ÁBCDE' TO symbol...
The output will be
output file :<symbol>ABCDE </symbol>
Here the value ABCDE followed by 7 spaces is moved between the tags. Is there any way to supress the spaces.. ideally the output i require needs to be as below.
<symbol>ABCDE</symbol>.
Please share your ideas. thanks