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


Please Help Members By Posting Answers For Below Questions

Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

806


What rules are followed by the search verb.

629


Write some characteristics of cobol as means of business language.

609


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1013


Mention the guidelines to write a structured cobol program?

602






How do you differentiate between cobol and cobol-ii?

643


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6782


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1577


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1757


how can i see junk values in dclgen or in hostvariable of comp ?

2532


How do you reference the fixed block file formats from cobol programs

691


What is amode(31)

712


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1603


In COBOL programming, what is PERFORM? What is VARYING?

664


Define static linking and dynamic linking.

652