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
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What are literals?
explain sorting techniques in cobol program?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
how to refer the data field?
Can a Search can be done on a table with or without Index?
Write a program to explain size error.
how do you reference the esds vsam file formats from cobol programs
What are the access modes of START statement?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is the difference between goback, stop run and exit program in cobol?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
how do you reference the ksds vsam file formats from cobol programs