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
What are the access modes of START statement?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
) How do u handle errors in BMS macro?
Write a cobol program making use of the redefine clause.
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
what are decleratives in cobol?
How to know whether the module is dynamical or statistical?
Why occurs cannot be used in 01 level in COBOL?
What are declaratives and what are their uses in cobol?
Write some characteristics of cobol as means of business language.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Name some of the examples of COBOl 11?
What are the rules of the move verb?