With in these three which one is the default one Call
Reference, Call By Value, Call By Content.-Which one is
default?
Answers were Sorted based on User's Feedback
Answer / shilpa
we can call the subprogram by refarence or content, but
call by refarence is default.
call by refarence: when we are passing the value from
mainprogram to subprogram if any changes in subprogram it
reflect also in main program but in call by content if any
changes in subprogram it wont reflect on mainprogram.
we can call the subprogram by dynamically or statically.in
this scenario the default is static call. in dynamic call
we call the program by value. in static call we call the
program by literal.
first we understand the main difference between static call
and dynamic call.
if any changes in subprogam in static call it will reflect
in msin program so we can recompile the mainprogram again
but not in dynamic. if we want to change any call program
just change the program name no neeed to change again and
again.dynamic call is faster compared to static call.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / asmara
Call By Reference is the default one.
1) Call By Reference passes the field to the called program
(sub-program). Any changes to the fields is done in the
calling program.Both will occupy same memory space.
2)Call By Content passes a copy of the fields to the called
program(sub-program). Any changes will not affect the
fields in the calling program(Main Program).
3)Call By Value refers to the address of the value (sent by
the calling program) & any change made here will be
reflected in the calling program. In these Both the Actual
and Dummy Parameters are occupy different memory space.
We will called as Formal Parameters in COBOL and where in
PL/I we called it as Dummy parameters.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sreeram
refer ans 2
In addition to the above, there is no diff b/w call by
value and call by content - both are same
Is This Answer Correct ? | 1 Yes | 2 No |
can we declare occurs in 01 level?
I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.
What is the difference between goback, stop run and exit program in cobol?
how to transfer the file from pc to mainframe??
Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.
Write a program to explain size error.
How To move a value to an array using move verb?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records...
2 Answers ITC Indian Tobacco Company, PNP, TCS,
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is tne need to use sub programs in Cobol?