is this below syntax correct?
CALL 'subprg' using A,B
Please help
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / billyboyo
Yes, your syntax is correct.
This is using the "call literal" option of IBM Cobol. If
you do need the call to be dynamic, specify the DYNAM
option on the compile.
If you were to have used "call data-name" then the call is
perforce dynamic and unaffected by DYNAM/NODYNAM compile
option.
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between ps, esds
what is dynamic array in cobol? what is the difference b/w array and table in cobol?
What care has to be taken to force program to execute above 16 Meg line?
What is rmode(24)
What is the use of EVALUATE statement?
What is Pic 9v99 Indicates in COBOL?
0 Answers SwanSoft Technologies,
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
can we use full outer join with cursors declared in cobol program?
If you were passing a table via linkage, which is preferable - a subscript or an index?
How we copy a program from production region to development region.What is the process & syntax ?
What is SDSF?
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?