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 Posted / 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 View All Answers
How are the next sentence and continue different from each other?
how to refer the data field?
What the difference is between continue and next sentence?
how to convert the recors form vsam file to db2 table tru file aid
Whats the difference between search & search ALL?
how do you reference the fixed unblock file formats from cobol programs
What are the access modes of START statement?
Write the code implementing the perform … varying.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between goback, stop run and exit program in cobol?
Define cobol?
In COBOL, what is the different between index and subscript?
Name some of the examples of COBOl 11?
Which is not true about evaluate statement
Mention the guidelines to write a structured cobol program?