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
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the difference between PIC 9.99 and PIC9v99?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How to print 10 to 1 if the input have only 10 digit number?
how do you reference the rrds file formats from cobol programs
how do you reference the esds vsam file formats from cobol programs
What are various search techniques in cobol? Explain.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What kind of error is trapped by on size error option?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the usage of comp fields in cobol?
Name the sections present in data division.
What is the difference between comp and comp-3?