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
What is the difference between comp and comp-3?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How to know whether the module is dynamical or statistical?
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.
What is inspect in cobol ?
How to print 10 to 1 if the input have only 10 digit number?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What are various search techniques in cobol? Explain.
what is difference between cobol and cobol/400
State the various causes of s0c1, s0c5 and s0c7.
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
what is the use of outrecord?
What are the different rules to perform a Search?
What is the difference between binary search and sequential search?