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

how we can reverse the string in the cobol for example
satheesh can be reveresed as hseehtas

Answer Posted / g venkatesh

data division.
01 ws-input pic x(8).
01 ws-output pic x(8).
01 i pic 9.
01 j pic 9.
procedure division.
move 1 to i.
perform varying j from 8 by -1 until j =0
move ws-input(i:1) to ws-output(j:1)
add 1 to i
end-perform
display ws-output.
stop run.

Is This Answer Correct ?    51 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is report-item in COBOL?

1160


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1356


Discuss about changing dataset name in proc.

1242


What are the access modes of START statement?

1275


How do you differentiate between cobol and cobol-ii?

1216


Can you please let me know the centre name of INS certification in Kolkata.

2249


What is length is cobol?

1107


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

1176


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1412


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4174


What is an in line perform? When would you use it? Anything else you wish to say about it.

1082


Define static linking and dynamic linking.

1203


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2435


What is the difference between Global and External Variables?

1385


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17886