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
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are the pertinent COBOL
How do you reference the fixed block file formats from cobol programs
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Write a cobol program making use of the redefine clause.
) How do u handle errors in BMS macro
How to remove 2 duplicate records and copy only one using job control language?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Define cobol?
How can you get the ksds file records into your cobol program?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Whats the difference between search & search ALL?
what is the difference between COBOL2 AND COBOL390?