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 |
When would you use in-line perform?
What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.
How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?
The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290
is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon
What is the difference between a subscript and an index in a table definition?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
Which Search verb is equivalent to PERFORM…VARYING?
What is rmode(any) ?
In an EVALUTE statement is the order of the WHEN clauses significant?
how can you identify wheather the program is using search or search all in the cobol program?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?