What are subroutines ? and how do we pass data to the sub
routines?
Answer Posted / harish
subroutines are normal cobol program called by another
program...
so data passed through linkake section
in main prog we have to code
call 'sub' using a1,a2
then in subprog accept these a1 and a2 with same name or
differnt doesnt matter
then in procedure division
procedure division using a1,a2.
.........
pls correct me if anything wrong
HARISH POOMGAME SHIVAPPA
NIIT TECHNOLOGY
KOLKATA
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Can a Search can be done on a table with or without Index?
What is comp-1 and comp-2?
What are the different rules of SORT operation?
What is the difference between binary search and sequential search?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the Purpose of Pointer in the string?
How do you differentiate between cobol and cobol-ii?
How many sections are there in data division in COBOL?
What is the difference between comp and comp-3?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
HOw can I get the negative sign while deduct high value from low value
What are the different open modes available in cobol?
What are the pertinent COBOL commands?
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