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 label record is standard or omitted in file description of data division?
How do u initialize an array?
HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?
Syntax for JCLLIB & JOBLIB???
in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
what are decleratives in cobol?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I am going to Display the WS-VARX and WS- VARN?
What is the mode in which you will OPEN a file for writing?
how do you reference the variable block file formats from cobol programs