pistach
pistach

Reputation: 401

COBOL - Calling program

Cobol - question. I have a written a sub-program with some procedures. Is it possible to call this sub-program from different main programs at the same time passing all different variables.

Upvotes: 1

Views: 755

Answers (2)

Avinash Kumbhare
Avinash Kumbhare

Reputation: 9

Off course you can call subprogram any time in main program. Subprogram will perform its function every time by accepting whatever parameters passed.

Upvotes: -1

Azhar
Azhar

Reputation: 36

Yes. You can call this subprogram from any main program. When you say different parameters, use USING clause to pass the corresponding values required for that particular sub program.

Upvotes: 2

Related Questions