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 / rajul
declare
01 NAME2 PIC X(13) RIGHT JUSTFIED.
MOVE NAME1 TO NAME2.
DISPLAY NAME2.
| Is This Answer Correct ? | 1 Yes | 13 No |
Post New Answer View All Answers
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
How you can read the file from bottom?
What are the pertinent COBOL
How do you get the data to code the BMS macro?
What is cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the utilization of copybook in cobol?
How many sections are there in data division in COBOL?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
how do you reference the variable block file formats from cobol programs
What is rmode(any) ?
what is difference between cobol and cobol/400
What are the rules of the move verb?
Explain how you can characterize tables in cobol?