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


Please Help Members By Posting Answers For Below Questions

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

2094


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8602


Write a program that uses move corresponding.

664


What is an in line perform? When would you use it? Anything else you wish to say about it.

637


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.

5662






How to know whether the module is dynamical or statistical?

648


What are the pertinent COBOL commands?

2617


i want a program using by if, evaluate , string, unstring, perform, occurs?

4033


Can we redefine the field of x(200) to less than 200?

807


What are the different open modes available in cobol?

713


What type of SDLC u followed? Why?

1512


how do you reference the rrds file formats from cobol programs

785


What is redefines clause in COBOL?

839


What is the Purpose of Pointer in the string?

632


What are the rules of the move verb?

693