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 / sairanga

procedure division.
move name1(17:1) to name2(1:1).
move name1(16:1) to name2(2:1).
move name1(15:1) to name2(3:1).
.
.
.

move name1(2:1) to name2(16:1).
move name1(1:1) to name2(17:1).
display name2.
stop run.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is not true about evaluate statement

2394


What is the utilization of copybook in cobol?

1115


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.

1383


Can we change the password using ALTER? anyone tried and changed?

1951


Have you used comp and comp-3 in your project? And how?

2424


What are various search techniques in cobol? Explain.

1026


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1289


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

1062


What are different data types in cobol?

1228


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1108


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

1452


Write a program to explain size error.

1137


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2337


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

2172


) what is the difference between AID and HANDLE AID?

2099