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 rmode(any) ?
State the various causes of s0c1, s0c5 and s0c7.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Name some of the examples of COBOl 11?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Mention the guidelines to write a structured cobol program?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Which mode is used to operate the sequential file?
Name the sections present in data division.
What is length is cobol?
Write a program to explain size error.
How do get the result of your program directly on your pc?
how do you reference the fixed unblock file formats from cobol programs
Difference between array and sub-script ?