1 year ago
#352295
Yasaswini Yerra
How to Remove Leading and Trailing spaces in COBOL
05 WS-IN-MRKT-TYPE PIC X(20).
05 WS-OUT-MRKT-TYPE PIC X(20).
Procedure Divison
Move Function Trim(WS-IN-MRKT-TYPE) TO WS-OUT-MRKT-TYPE
Move WS-OUT-MRKT-TYPE to OUTPUT File.
Here Trim function is not working but if I am using Trim Function with display statement then it is working properly But I need to move the trim field to output file. Display function trim(WS-IN-MRKT-TYPE)
cobol
0 Answers
Your Answer