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

how do you reference the ksds vsam file formats from cobol programs

666


Difference between array and sub-script ?

1167


A table has two indexes defined. Which one will be used by the SEARCH?

759


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

825


What are the pertinent COBOL commands?

2626






Write a program to explain size error.

677


What are the different rules for performing sort operation?

763


Explain how to differentiate call by context by comparing it to other calls?

689


Which mode is used to operate the sequential file?

669


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

744


Name the divisions, which are available in a cobol program?

685


What is the difference between PIC 9.99 and 9v99 in COBOL?

732


What is the difference between Global and External Variables?

666


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1783


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1701