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
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
how do you reference the variable unblock file formats from cobol programs
) How do u handle errors in BMS macro?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
how to move the records from file to array table. give with code example
What is the use of intialize verb?
Give some examples of command terminators?
) what is the difference between AID and HANDLE AID?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
what are decleratives in cobol?
What is link edit in cobol?
How are the next sentence and continue different from each other?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?