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 are the access modes of START statement?

714


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

704


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8616


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

699


) How do u handle errors in BMS macro?

1419






Write a cobol program making use of the redefine clause.

723


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2096


what are decleratives in cobol?

1825


How to know whether the module is dynamical or statistical?

650


Why occurs cannot be used in 01 level in COBOL?

708


What are declaratives and what are their uses in cobol?

702


Write some characteristics of cobol as means of business language.

612


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

728


Name some of the examples of COBOl 11?

2674


What are the rules of the move verb?

695