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

Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

831


What are the different types of condition in cobol and write their forms.

660


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2109


How do u write test cases?

1642


Write some characteristics of cobol as means of business language.

623






How you can characterize tables in cobol?

723


how do you reference the fixed unblock file formats from cobol programs

712


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1598


Why would you use find and get rather than to obtain?

694


What is cobol?

750


When is inspect verb is used in cobol?

679


explain sorting techniques in cobol program?

692


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

646


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

1107


what is the use of outrecord?

1774