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 an in line perform? When would you use it? Anything else you wish to say about it.
Which mode is used to operate the sequential file?
State the various causes of s0c1, s0c5 and s0c7.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How do you define a variable of comp-1 and comp-2?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
how do you reference the esds vsam file formats from cobol programs
What is the problem of ordered sequential files access?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Have you used comp and comp-3 in your project? And how?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Name some of the examples of COBOl 11?
What is a report item?
what is search and searchall?what is the diffrence between them?give an best example?