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 the difference between goback, stop run and exit program in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How to print 10 to 1 if the input have only 10 digit number?
Explain how you can characterize tables in cobol?
What are the different types of condition in cobol and write their forms.
What is the difference between structured cobol programming and object alternativelyiented cobol?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
How do get the result of your program directly on your pc?
Can a Search can be done on a table with or without Index?
how do you reference the ksds vsam file formats from cobol programs
how do you reference the variable unblock file formats from cobol programs
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is inspect in cobol ?
What is the compute verb? How is it used?