Re: 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 / sruthi
Hi Subu,
first of all the size of the var NAME1 is 13. You are
passing more than 13 chars. Some data will be truncted.
There are 2 methods to reverse the string.
one is move reference modification.it is very lengthy
process and other is reverse function.
syntax: move function reverse(NAME1) to NAME2
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
IF I mention stop run in CICS what happens?
How many sections are there in data division in COBOL?
What is cobol?
What is the difference between external and global variables in COBOL?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is amode(31)
What are the various section in data division and briefly explain them.
how to access the file from prodution from changeman tool and to submit a file to production
Which division and paragraphs are mandatory for a COBOL program?
What are the different open modes available in cobol?
How to know whether the module is dynamical or statistical?
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.
What are the different rules of SORT operation?
In COBOL programming, what is PERFORM? What is VARYING?
What is the difference between PIC 9.99 and PIC9v99?