Friday, September 2, 2011

How we can reverse a string in COBOL without cobol function reverse?


Please read the below given code.



If you don't want to calculate the string lenth before the string reversal then you have to mention the the lenth of the string manually
like
MOVE 15 to WS-LEN
PERFORM REV-PARA WS-LEN TIMES.


0 comments:

Post a Comment