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 do u write test cases?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
In which area will you utilize 88 level items in cobol?
How many bytes S(8) comp field occupy and its maximum value?
Write down the divisions of cobol program?
Why occurs cannot be used in 01 level in COBOL?
How you can read the file from bottom?
What are the different types of condition in cobol and write their forms.
What is the compute verb? How is it used?
How to print 10 to 1 if the input have only 10 digit number?
What is redefines clause in COBOL?