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 |
In an EVALUATE statement, can I give a complex condition on a when clause?
how will u code parm parameter and where pls ?
in cobol perform stmt whether it first checks the condition or not
File status must be checked both while opening and reading the file or only while reading the file?
Difference between ps, esds
I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??
I want ALL ERROR codes in VSAM
3 Answers American Express, TCS,
What is the maximum data length for Numeric DataType ?
Without using move verb how to move one variable to another.
WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED. WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT SHOULD BE USED WHEN
COMP?
Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?