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

Write some characteristics of cobol as means of business language.

1136


What are the various section in data division and briefly explain them.

1160


Name the sections present in data division.

1231


What is static and dynamic call in cobol?

1058


Whats the difference between search & search ALL?

6505


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2098


Which is not true about evaluate statement

2447


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1157


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3256


) what is the difference between AID and HANDLE AID?

2149


What is the local-storage section?

1141


How do we get current date from system with century in COBOL?

1373


Define static linking and dynamic linking.

1179


Explain the configuration section of a cobol program with examples of syntax.

1185


Why occurs cannot be used in 01 level in COBOL?

1154