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 |
How do we get current date from system with century in COBOL?
What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......
how many divisions are there in cobol
) How do u handle errors in BMS macro
What is inspect in cobol ?
Difference between next and continue clause
Can we move X(9) to 9(9). If yes what are the ways for doing this?
how to code in cobol while using variable block file?
what is dynamic array in cobol? what is the difference b/w array and table in cobol?
how many bytes do SPPPP999 will store?
I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.
Can JUSTIFIED be used for all the data types?