Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / ankur kar

In order to reverse the String the only way is by declaring
the string as an array and then sequentially arrage the
array based on the asending/desending order of the array
and then display the sequential result accordingly.
Otherwise there is no command in COBOL that will allow the
string to be displayed in the reverse order.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write some characteristics of cobol as means of business language.

1196


Name the sections present in data division.

1309


how do you reference the variable block file formats from cobol programs

1310


What is cobol?

1289


Explain how to differentiate call by context by comparing it to other calls?

1244


What are the access modes of START statement?

1326


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

2644


Explain how you can characterize tables in cobol?

1115


What are the different open modes available in cobol?

1244


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

2187


What is the difference between next sentence and continue in cobol programing language?

1278


Whats the difference between search & search ALL?

6662


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

1154


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1210


What is Pic 9v99 Indicates in COBOL?

1339