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
How do get the result of your program directly on your pc?
What is amode(24)?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are the different rules of SORT operation?
What are the different types of condition in cobol and write their forms.
State the various causes of s0c1, s0c5 and s0c7.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
In COBOL, what is the different between index and subscript?
Name the divisions, which are available in a cobol program?
what are decleratives in cobol?
What are the access modes of START statement?
Write the code to count the sum of n natural numbers.
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.
What is the difference between binary search and sequential search?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning