What is "Call by content" and "call by reference"?
Answer Posted / sruthi
Call by reference means address of var is passed to sub pgm.
The modifications on the passed vars in sub pgm will be
effected in main pgm.
call by content means value of the var is passed to sub pgm.
The modifications on the passed vars in sub pgm will not be
effected in main pgm. that is local to sub pgm.
| Is This Answer Correct ? | 47 Yes | 2 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is rmode(24)
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Can a Search can be done on a table with or without Index?
What is difference between static and dynamic call in cobol?
Give some examples of command terminators?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is amode(31)
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Define cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Which Search verb is equivalent to PERFORM…VARYING?