What do you understand by passing by reference and passing by content?
Passing by reference, is passing the ADDRESS of a variable--to a subprogram. The subprogram is able to change the value contained in the variable.
Passing by content is passing the DATA contained within a variable--to a subprogram. The subprogram can NOT change the value of the data in the (calling program's) variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?
We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)
I want to declare a field with data type Double in my COBOL program. how shall i do that ?
What is the file organization clause ?
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
Can printer files (having 133 characters) be of variable length?
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?
What will happen if we generate GDG (+2) version without generating (+1) version?
What is ASKTIME, SUSPEND
what happens of we dont give time stamp in precompilation process
how do you reference the fixed unblock file formats from cobol programs