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
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
explain sorting techniques in cobol program?
how do you define single dimensional array and multidimensional array in your cobol?
Whats the difference between search & search ALL?
what happens if parmparameter passes zero bytes to the program
how do you reference the variable block file formats from cobol programs
what is the difference between COBOL2 AND COBOL390?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do you reference the fixed block file formats from cobol programs
what is amode(24), amode(31), rmode(24) and rmode(any)?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
how do you reference the ksds vsam file formats from cobol programs
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?