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


Please Help Members By Posting Answers For Below Questions

I have a File that has duplicate records. I need only those records that occur more than thrice.?

9241


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

1028


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

949


What rules are to be followed while using the corresponding options?

833


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1410


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

965


Which mode is used to operate the sequential file?

928


What are the access modes of START statement?

938


What are different data types in cobol?

913


What is the difference between PIC 9.99 and 9v99 in COBOL?

978


What is amode(24)?

884


Define static linking and dynamic linking.

872


What is a report item?

907


What is the difference between external and global variables in COBOL?

1044


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

988