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 |
i want to store 20 digits . h will u do it in cobol ?
Give some examples of command terminators?
What is LENGTH in COBOL II?
study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level
what is jcl approach for programming?
I got user abend U4038 while compiling my runjcl.. can anyone help me?
What are options have been removed in COBOL 11?
given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.
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
which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks
If I want to increase the Limit in GDG. What should I do?
I have a occurs for 100 times but it has executed 101 time what could be the reason?