Hezi
(Hezi)
1
Hi,
Did someone encounter a problem to include a copycopy in a program that call an external subroutine?
for EX:
prog1:
define data
.
.
.
end-define
include aaa
end
copycode:
perfrom extrnt-sub
external subroutine:
define data
.
.
.
.
end-define
define extrnt-sub
.
.
.
end-subroutine
Two possibilities.
First the spelling of perfORm not rom.
Second, at execution time; was the subroutine stow’ed?
Hezi
(Hezi)
3
sorry for the mistake, it is not written like that in the prog.
yes, there are stowed
Hi Hezi;
What sort of problem are you having? Compiler error? Execution error?
I have tried the following:
program:
write ‘in program before include’
include mysub02
write ‘in program after include’
end
Here is the copycode mysub02
write 5t ‘in copycode before perform’
perform mysub
write 5t ‘in copycode after perform’
And here is the subroutine mysub
define subroutine mysub
write 15t ‘in subroutine mysub’
end-subroutine
end
This works perfectly.
One more thing to consider.
In my posted example, I did a RUN of the program. So, I next stow’ed the program and then EXECUTE’d it.
This also worked fine.
By any chance did you change the names of any of the three objects (program, copycode, subroutine object) or the name of the subroutine?