if one main program ,n -subprograms are then which call you
follow ?why reasonuhg
Answers were Sorted based on User's Feedback
Answer / krishna
Dynamic Call is always preferable, irrespective of the no
of Sub programs,but it all depends on the installation.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / shiva
in dynamic call the subprogram load modules are linked
during execution..so it terms of processing it is slow
compared to satic...
but no need to compile main pgm every time when subprogm
is modified...it is one bst advantage over static call....
hence dynamic call is pereferable....
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / sandhya
dynamic call is preferable with respect to space and
static call is preferable with respect to fast execution...
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / harsha
intially we follow main program then all depends on the
control or flow of the main program itself for eg;
In main prog intially we call a subprog1 and after the
execution of subprog1 is over then control is back to the
main prog or to be simple the program which called...to bo
simple wherever the control gets it's start it's(control)
is finally returned to that point in the program
Is This Answer Correct ? | 1 Yes | 1 No |
given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.
diffrence between renames and redifnes with examples
if someone is using my file,how can i find which user id is using?
01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
whats the difference between search and search all?
What is the problem of ordered sequential files access?
Should I use STOP RUN in the sub program??why?
What is a subscript ?
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code
In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference
01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?