Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2
PIC X(13). now I want to display the value of NAME1 in
reverse order i.e value should be displayed as "GNIMMARGORP
LOBOC" HOW can I do that ??? please let me know if any one
knows it.
Answer Posted / sruthi
Hi Subu,
first of all the size of the var NAME1 is 13. You are
passing more than 13 chars. Some data will be truncted.
There are 2 methods to reverse the string.
one is move reference modification.it is very lengthy
process and other is reverse function.
syntax: move function reverse(NAME1) to NAME2
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
Write a program that uses move corresponding.
What are the different rules to perform a Search?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What are all the divisions of a COBOL program?
what is difference between cobol and cobol/400
how do you reference the rrds file formats from cobol programs
What is difference between static and dynamic call in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What are declaratives and what are their uses in cobol?
Difference between cobol and cobol-ii?
How to print 10 to 1 if the input have only 10 digit number?
What is link edit in cobol?
What is a scope terminator give example?
) How do u handle errors in BMS macro