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 / kiran

There is no limit.... we can write n number of sub programs
in main pgm.

by using linkage section in data division in sub program

by using IS GLOBAL keyword

ex 01 name pic x(10) IS Global

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

694


what happens if parmparameter passes zero bytes to the program

1660


Which Search verb is equivalent to PERFORM…VARYING?

682


Can a Search can be done on a table with or without Index?

800


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

716






How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

709


Write a program that uses move corresponding.

669


What are the access modes of START statement?

716


What are the pertinent COBOL

2041


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


What is comp-1 and comp-2?

759


What is redefines clause in COBOL?

845


) How do u handle errors in BMS macro?

1427


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

746


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1930