COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'
Answer Posted / nanda
********************** Top of Data ***********
ID DIVISION.
PROGRAM-ID. ALLINONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-A PIC X(7) VALUE 'NANDA'.
01 WS-B PIC X(7).
PROCEDURE DIVISION.
MOVE FUNCTION REVERSE(WS-A) TO WS-B.
DISPLAY WS-B.
STOP RUN.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
In COBOL, what is the different between index and subscript?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is a scope terminator give example?
What do you understand by psb and acb?
What is the problem of ordered sequential files access?
How are the next sentence and continue different from each other?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How to remove 2 duplicate records and copy only one using job control language?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
how to refer the data field?
When is inspect verb is used in cobol?
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
What are declaratives and what are their uses in cobol?
What rules are to be followed while using the corresponding options?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?