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?
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 |
What are the different data types available in COBOL?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree
what is a load module ?
HOw can I get the negative sign while deduct high value from low value
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.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is a subscript ?
how can we find total no of records in a file ....is there any utility......?
perform I from 0 by 1 until I=5?How maney times it will executes
How to convert bunch of words in a line to relvant ASCII values?