‎2007 Apr 27 9:59 AM
How can you call a subroutine which is located in program A from program B?
‎2007 Apr 27 10:03 AM
Hi pinky,
1. One way of calling is like this also.
In program B, write
<b>perform mysubourtine(ProgramA)
using xyz.</b>
(Note, The Brackets are important)
regards,
amit m.
‎2007 Apr 27 10:00 AM
Hi Pinky,
Check the syntax:
In Program B.
PERFORM form IN PROGRAM A.
‎2007 Apr 27 10:02 AM
Hi Pinky,
Using 'Include Program' u can call a subroutine from One program to Another.
‎2007 Apr 27 10:03 AM
Hi pinky,
1. One way of calling is like this also.
In program B, write
<b>perform mysubourtine(ProgramA)
using xyz.</b>
(Note, The Brackets are important)
regards,
amit m.
‎2007 Apr 27 10:03 AM
Hi pinky,
subroutines can be used in two types. one is internal subroutine and external subroutine.
Internal subroutine means we can use subroutine within the program.
External subroutine means we can call in any program.
********rewords some points.
Rgds,
P.Naganajna Reddy
‎2007 Apr 27 10:04 AM
hi Pinky,
if the program A is subroutine pool then u can call using
perform <subr> in program <program name>
if it's ana include, then include that program in the program B.
regards,
Navneeth.K
‎2007 Apr 27 10:04 AM