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
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Can a Search can be done on a table with or without Index?
What the difference is between continue and next sentence?
) How do u handle errors in BMS macro
how do you reference the variable block file formats from cobol programs
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Write a cobol program making use of the redefine clause.
What is the difference between PIC 9.99 and PIC9v99?
Write a program to explain size error.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How do you get the data to code the BMS macro?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Explain how to differentiate call by context by comparing it to other calls?
In which area will you utilize 88 level items in cobol?