how many subpgms we can use in a main pgm ?
how do u link sub pgm to main pgm ?
how can i use the parameters declared in main pgm to sub pgm ?

Answer Posted / sen

Same as kiran said
But to get the parameters used in tha main program can be used by {procedure division using var-1,var-2} in the sub program
Eg if ur var name is ws-1 and ws-2
Then we can get values by
Procedure division using ws-1,ws-2.

Is This Answer Correct ?    0 Yes 0 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?

1885


What are the cobol coding sheets?

664


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


What are different data types in cobol?

690


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

946






what are decleratives in cobol?

1827


How to remove 2 duplicate records and copy only one using job control language?

753


how do you reference the printer file formats from cobol programs

665


Which mode is used to operate the sequential file?

669


What is the compute verb? How is it used?

661


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

704


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710


What is the usage of comp fields in cobol?

660


Write some characteristics of cobol as means of business language.

619


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2661