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 / rajul
just define
01 name2 picX(13) right justified.
and then use move stmt
move name1 to name2.
| Is This Answer Correct ? | 2 Yes | 13 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How are the next sentence and continue different from each other?
example for sub strings ? and refernce modifications whit output pls
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Which mode is used to operate the sequential file?
how do you reference the variable block file formats from cobol programs
What type of SDLC u followed? Why?
Name the sections present in data division.
What is length is cobol?
how to refer the data field?
What do you understand by psb and acb?
Explain how to differentiate call by context by comparing it to other calls?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is the difference between Global and External Variables?
What are declaratives and what are their uses in cobol?