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
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Define static linking and dynamic linking.
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 INPUT PROCEDURE and OUTPUT PROCEDURE?
What do you understand by psb and acb?
Describe the cobol database components?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the difference between binary search and sequential search?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
In which area will you utilize 88 level items in cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Write a program to enter and display the names of students in a class using the occurs clause.
What are various search techniques in cobol? Explain.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there