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 / ankur kar
In order to reverse the String the only way is by declaring
the string as an array and then sequentially arrage the
array based on the asending/desending order of the array
and then display the sequential result accordingly.
Otherwise there is no command in COBOL that will allow the
string to be displayed in the reverse order.
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How do you differentiate between cobol and cobol-ii?
) what is the difference between AID and HANDLE AID?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the use of intialize verb?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Name some of the examples of COBOl 11?
Write some characteristics of cobol as means of business language.
Explain the configuration section of a cobol program with examples of syntax.
IF I mention stop run in CICS what happens?
What is the difference between PIC 9.99 and PIC9v99?
How are the next sentence and continue different from each other?
How you can characterize tables in cobol?
What is a report item?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is amode(31)