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


Please Help Members By Posting Answers For Below Questions

How do get the result of your program directly on your pc?

1870


What is amode(24)?

676


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

691


What are the different rules of SORT operation?

689


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

647






State the various causes of s0c1, s0c5 and s0c7.

652


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1513


In COBOL, what is the different between index and subscript?

749


Name the divisions, which are available in a cobol program?

673


what are decleratives in cobol?

1816


What are the access modes of START statement?

706


Write the code to count the sum of n natural numbers.

695


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.

1103


What is the difference between binary search and sequential search?

630


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

669