I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5.

Sub program is passing 5 parameters back to main program

Will there be any compilation error? Or main program parameters displays junk values?



I have a COBOL main program which is calling sub program, the number of calling parameters used in m..

Answer / nehal jethava

When the main program passes fewer parameters than the sub program expects, the compiler will raise an error because the sub program cannot access the fifth parameter it is expecting. This is a mismatch in the interface and is not allowed in COBOL.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

What are the different data types available in COBOL?

4 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


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,


what is a load module ?

3 Answers   TCS,


HOw can I get the negative sign while deduct high value from low value

0 Answers  






If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.

1 Answers  


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

0 Answers  


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

0 Answers  


What is a subscript ?

3 Answers  


how can we find total no of records in a file ....is there any utility......?

3 Answers   IBM,


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  


How to convert bunch of words in a line to relvant ASCII values?

2 Answers  


Categories