COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'
Answer Posted / randy
Hi,
We can use Reverse function.
MOVE FUNCTION REVERSE(WS-STRING) TO WS-REV-STRING
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What rules are to be followed while using the corresponding options?
how do you define single dimensional array and multidimensional array in your cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What are the different data types in cobol?
What is a report item?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Which mode is used to operate the sequential file?
Write a program to enter and display the names of students in a class using the occurs clause.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
how do you reference the rrds file formats from cobol programs
What is the difference between next sentence and continue in cobol programing language?
What is report-item in COBOL?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
what is amode(24), amode(31), rmode(24) and rmode(any)?