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...

COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'

Answer Posted / sushree

id division.
prog-id. hello.
data division.
working-storage section.
01 ws-str pic A(6) value 'BOMBAY'.
01 ws-cnt pic 9(1).
01 ws-str1 pic A(1).
01 ws-str2 pic A(6) value space.
procedure division.
inspect ws-str tallying ws-cnt for all characters
display ws-cnt
perform until ws-cnt < 1
move ws-str3(ws-cnt:1) to ws-str1
string ws-str2 delimited by space
ws-str1 delimited by size
into ws-str3
compute ws-cnt = ws-cnt - 1
end-perform.
display ws-str3.
stop run.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In COBOL, what is the different between index and subscript?

1187


What is cobol?

1195


Why did you choose to work with ibm mainframe cobol programming?

1036


How many sections are there in data division in COBOL?

1080


How to know whether the module is dynamical or statistical?

1082


What are all the divisions of a COBOL program?

1148


What is the problem of ordered sequential files access?

1111


What is the utilization of copybook in cobol?

1117


What are the pertinent COBOL

2509


How arrays can be defined in COBOL?

1139


How do get the result of your program directly on your pc?

2297


What is rmode(24)

1099


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

1061


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

1130


What is static and dynamic call in cobol?

1004