is this below syntax correct?
CALL 'subprg' using A,B
Please help
Answer Posted / lu
yes, ...look at this ex:
For calling sub-modules DYNAMICALLY - Code:
In Working Storage Section -
01 WS-PROGRAM PIC X(08).
MOVE 'SUBPROGA' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)
MOVE 'SUBPROGB' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)
MOVE 'SUBPROGC' TO WS-PROGRAM
CALL WS-PROGRAM USING ....(Your Parameters)
For Calling STATICALLY, check your compiler option. If it
is NODYNAM then use -
Code:
CALL 'SUBPROGA' USING ...(Your parameters)
CALL 'SUBPROGB' USING ...(Your parameters)
CALL 'SUBPROGC' USING ...(Your parameters)
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Write a program that uses move corresponding.
What is an in line perform? When would you use it? Anything else you wish to say about it.
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How to know whether the module is dynamical or statistical?
What are the pertinent COBOL commands?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Can we redefine the field of x(200) to less than 200?
What are the different open modes available in cobol?
What type of SDLC u followed? Why?
how do you reference the rrds file formats from cobol programs
What is redefines clause in COBOL?
What is the Purpose of Pointer in the string?
What are the rules of the move verb?