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

What are the various section in data division and briefly explain them.

914


What are literals?

860


Why occurs cannot be used in 01 level in COBOL?

914


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5599


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

868


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1064


Have you used comp and comp-3 in your project? And how?

2209


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1038


What is the utilization of copybook in cobol?

884


explain sorting techniques in cobol program?

895


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

906


What are the different open modes available in cobol?

942


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

908


what is amode(24), amode(31), rmode(24) and rmode(any)?

893


Write some characteristics of cobol as means of business language.

848