Can anyone explain me CALL procedure in COBOL.Does it
carries similarities like call by reference in C.
Answer / 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 |
is it possible to rename 01 level?
What is the difference between index and subscript?
which generation language is cobol
What is R-mode and A-mode?
i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND
10 Answers Huawei, IBM, TCS,
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
Can we access the a[0] in the array ?
At the minimum, which division of COBOL is enough to be coded?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Why we should use cursor ?
level number 77 is used to define a)group data b)elementary data c)redefine d)none