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 I mention stop run in CICS what happens?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
How to print 10 to 1 if the input have only 10 digit number?
What are 77 levels used for?
how do you reference the variable block file formats from cobol programs
How you can read the file from bottom?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is difference between static and dynamic call in cobol?
explain sorting techniques in cobol program?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
) How do u handle errors in BMS macro