Can anyone explain me CALL procedure in COBOL.Does it
carries similarities like call by reference in C.
Answer Posted / sravani
CALL statement is used to whenever if we want to call any subprograms in the main program.
The call can be a dynamic call or static call.
In static call the subprogram is compiled alone with the main program where as in dynamic call the calling program and called program will be compiled separately.
If there were any changes in the subprogram then main program also needs to be recompiled in case of static call its not required in dynamic call.
For static call NODYNAM is choosen and for dynamic call DYNAM is choosen. For static call the program name is passed directly for dynamic call the program name is declared in working storage section and it will be called using the working storage variable.
Various ways of calling the subprograms using call statement
CALL WS_PGM using by reference using identifier-1, identifier-2.
CALL WS-PGM using by content using identifier-1, identifier-2.
CALL WS-PGM using by value using identifier-1, identifier-2.
CALL WS-PGM.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What are the cobol coding sheets?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
how do you reference the ksds vsam file formats from cobol programs
What are different data types in cobol?
What is comp-1 and comp-2?
What is difference between static and dynamic call in cobol?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
) how do u code after getting data?
Explain about different table spaces.
How you can characterize tables in cobol?
What are the different open modes available in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?