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 ?

Answers were Sorted based on User's Feedback



how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use th..

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

how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use th..

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

More COBOL Interview Questions

S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


what is the difference between perform varying and perform until

4 Answers   TCS,


What is SSRANGE, NOSSRANGE ?

5 Answers  


How do we get current date from system with century?

2 Answers  






what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

1 Answers   Syntel,


what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


Write some characteristics of cobol as means of business language.

0 Answers  


what is SYNCHRONIZATION?

3 Answers   Syntel,


How to covert given string into ASCII value in COBOL/MF COBOL

3 Answers   CTS, IBM, iFlex,


How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree

3 Answers   Merrill Lynch,


I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...

2 Answers   CTS, DSRC,


Categories