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 |
What is a subscript ?
How many maximum number of procedures can we write in one COBOL program?
is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon
How include time & date in the report generation in cobol programing?
Can we use redefine clause in occurs clause?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?
what is mainframe? what is the mainframe software ? what is use in s/w field?
IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-I PIC 9(2). PROCEDURE DIVISION. A1000-MAIN-PARA. PERFORM PARA-X WITH TEST BEFORE UNTIL WS-I= 5 STOP RUN. PARA-X. DISPLAY "BEST2". I m getting error s722,while executing the program, seems getting in loop, can anybody tell me why
What do you understand by psb and acb?
why do u need inspect verb?
where will we code call by content and call by reference dude pls reply soon ?