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

input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16....
output:- A = 100,B=36,C=50.
Here spaces are considered between numbers.
When we give input as above, the numbers should be added n
displayed.So please help me out.

Answer Posted / lalitha

Use Delimiter option in STRING function - COBOL to unstring
the numbers to variables and then sum it up.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What rules are followed by the search verb.

1200


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

2168


Describe the cobol database components?

1219


Write the code to count the sum of n natural numbers.

1259


What are declaratives and what are their uses in cobol?

1264


Which division and paragraphs are mandatory for a COBOL program?

1335


What are the different rules for performing sort operation?

1283


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

1209


Define static linking and dynamic linking.

1272


What is the difference between Global and External Variables?

1440


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2538


What are the different open modes available in cobol?

1250


Why occurs cannot be used in 01 level in COBOL?

1206


How do you reference the fixed block file formats from cobol programs

1292


How do you reference the following file formats from cobol programs?

1207