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 / rajul
declare
01 NAME2 PIC X(13) RIGHT JUSTFIED.
MOVE NAME1 TO NAME2.
DISPLAY NAME2.
| Is This Answer Correct ? | 1 Yes | 13 No |
What is COMP-1? COMP-2?
can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.
I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Write the syntax of a two dimensional array?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
how to transfer the file from pc to mainframe??
What are the cobol coding sheets?
1.Can we define condition-name conditions in FD entry.
what is difference between the sysabend and userabend?
In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?