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 / mr2981

to reverse the string use REVERSE function

01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING".
01 NAME2 PIC X(13).

MOVE FUNCTION REVERSE(NAME1) TO NAME2.

Is This Answer Correct ?    34 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between comp and comp-3?

795


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

797


How to know whether the module is dynamical or statistical?

750


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1863


What is inspect in cobol ?

881






How to print 10 to 1 if the input have only 10 digit number?

918


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

512


What are various search techniques in cobol? Explain.

749


what is difference between cobol and cobol/400

21859


State the various causes of s0c1, s0c5 and s0c7.

747


What is an in line perform? When would you use it? Anything else you wish to say about it.

738


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

833


what is the use of outrecord?

1857


What are the different rules to perform a Search?

701


What is the difference between binary search and sequential search?

731