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

just define
01 name2 picX(13) right justified.

and then use move stmt
move name1 to name2.

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2061


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1693


In COBOL programming, what is PERFORM? What is VARYING?

755


) how do u code after getting data?

1657


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

804






What is a scope terminator give example?

735


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.

1863


Explain how you can characterize tables in cobol?

730


Write the code implementing the perform … varying.

722


What are all the divisions of a COBOL program?

756


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

752


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1047


What are the pertinent COBOL

2124


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

1782


What is the difference between Call and a Link?

794