Re: 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.
Answers were Sorted based on User's Feedback
Answer / sruthi
Hi Subu,
first of all the size of the var NAME1 is 13. You are
passing more than 13 chars. Some data will be truncted.
There are 2 methods to reverse the string.
one is move reference modification.it is very lengthy
process and other is reverse function.
syntax: move function reverse(NAME1) to NAME2
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / praveen ellur
Reverse function in Cobol will do this for u.
Here is the syntax.
FUNCTION REVERSE ('COBOL PROGRAMMING')
| Is This Answer Correct ? | 5 Yes | 0 No |
what is level 66 means??
what is scope terminator
How do you set a return code to the JCL from a COBOL program?
how do u list the abended jobs?
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
Name the divisions in a COBOL program ?
can we write paragraph in area B .....
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
What is rmode(any) ?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
What will happen if we generate GDG (+2) version without generating (+1) version?
explain sorting techniques in cobol program?