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 amode(24)?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What are declaratives and what are their uses in cobol?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
How do u write test cases?
What is a SSRANGE and NOSSRANGE?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are all the divisions of a COBOL program?
What is the difference between goback, stop run and exit program in cobol?
Whats the difference between search & search ALL?
How arrays can be defined in COBOL?
how do you reference the variable block file formats from cobol programs
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that