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 / satya
As per my knowledge we can solve this problem with use of
STRING AND UNSTRING commands,first UNSTRING the give string
and add all the characters according to our choice by using
STRING COMMAND.
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
) How do u handle errors in BMS macro?
Which division and paragraphs are mandatory for a COBOL program?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Which is not true about evaluate statement
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Difference between cobol and cobol-ii?
What are the different rules to perform a Search?
Can a Search can be done on a table with or without Index?
What guidelines should be followed to write a structured cobol prgm?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
How arrays can be defined in COBOL?
What is the utilization of copybook in cobol?
What is report-item in COBOL?
Write a program that uses move corresponding.