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
Write some characteristics of cobol as means of business language.
Name the sections present in data division.
how do you reference the variable block file formats from cobol programs
What is cobol?
Explain how to differentiate call by context by comparing it to other calls?
What are the access modes of START statement?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
Explain how you can characterize tables in cobol?
What are the different open modes available in cobol?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between next sentence and continue in cobol programing language?
Whats the difference between search & search ALL?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is Pic 9v99 Indicates in COBOL?