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 / mr2981
to reverse the string use REVERSE function
01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING".
01 NAME2 PIC X(13).
MOVE FUNCTION REVERSE(NAME1) TO NAME2.
| Is This Answer Correct ? | 34 Yes | 3 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What are the different rules of SORT operation?
) how do u code after getting data?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between binary search and sequential search?
What is the LINKAGE SECTION used in COBOL?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is a report item?
how to refer the data field?
What is the utilization of copybook in cobol?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
how do you reference the ksds vsam file formats from cobol programs
How many sections are there in data division in COBOL?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech