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 |
where will u code file status ?
Have you code any new programs in COBOL ? What is the functionality of the programs?
Write the code implementing the perform … varying.
when COMP-3 is preferrable?
What are the cobol coding sheets?
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What are the steps you go through while creating a COBOL program executable?
i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast
can we use full outer join with cursors declared in cobol program?
what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?