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
What is a report item?
i need a small 3d program using inline and outline.
Can a Search can be done on a table with or without Index?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the utilization of copybook in cobol?
What is the LINKAGE SECTION used in COBOL?
How do define dynamic array in cobol.
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 is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What are different data types in cobol?
What is the difference between next sentence and continue in cobol programing language?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
what is the use of outrecord?