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 |
i need a small 3d program using inline and outline.
can we redefine 77 level item is it possible
Describe the difference between subscripting and indexing ?
What is the maximum length of a field you can define using COMP-3?
4 Answers Complex System, Infosys,
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is
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.
Write the code to count the sum of n natural numbers.
give the examples of strings in cobol
What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?
perform I from 0 by 1 until I=5?How maney times it will executes
how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)
The maximum number of dimensions that an array can have in COBOL-85 is ?