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 |
how you read control card into array?
What is perform what is varying?
what are the utilities for load and unload the DB2 tables
Whats the use of Examine command? can someone help me?
What is sqlca and why is it needed in any cobol-db2 program?
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
What is the difference between subscript and index?
How do define dynamic array in cobol.
What is inspect in cobol ?
What is file status 92?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
I have a sequential file. How do I access a record in this sequential file randomly in my program ?