Reputation: 401
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
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
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