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 / ankur kar
In order to reverse the String the only way is by declaring
the string as an array and then sequentially arrage the
array based on the asending/desending order of the array
and then display the sequential result accordingly.
Otherwise there is no command in COBOL that will allow the
string to be displayed in the reverse order.
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What is an in line perform? When would you use it? Anything else you wish to say about it.
What kind of error is trapped by on size error option?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
What is the difference between PIC 9.99 and 9v99 in COBOL?
What type of SDLC u followed? Why?
What is the LINKAGE SECTION used in COBOL?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How arrays can be defined in COBOL?
A table has two indexes defined. Which one will be used by the SEARCH?
Explain how you can characterize tables in cobol?
How do u write test cases?
What is the compute verb? How is it used?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?