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 / praveen ellur

Reverse function in Cobol will do this for u.

Here is the syntax.
FUNCTION REVERSE ('COBOL PROGRAMMING')

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

5408


What is the difference between comp and comp-3?

884


What are the access modes of START statement?

922


What is the usage of comp fields in cobol?

865


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2346


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1876


how to access the file from prodution from changeman tool and to submit a file to production

7056


Explain how you can characterize tables in cobol?

812


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

859


What is rmode(any) ?

890


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2279


What is the difference between perform … with test after and perform … with test before?

1134


What is the problem of ordered sequential files access?

897


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1225


how can i see junk values in dclgen or in hostvariable of comp ?

2742