I have defined a UD function in a .p which will be SESSION supered.
I can't seem to find the correct way to access that super implementation from another .p.
Maybe some code snippets will tell more :
PGM a.p: (which defines the function)
FUNCTION test returns CHAR (input p_something as char).
...
END.
PGM b.p : which will load a.p persistent and make it a session super.
...
RUN a.p persistent set w_handle.
SESSION:add-super-procedure(w_handle).
...
PGM c.p : a proc which wants to use the function test implemented in the session super proc.
...
What do I code here ??
Something like :
FUNCTION test returns CHAR (input p_something as char) in SUPER.
does not seems to work, as the function test is not recognised in the c.p code.
What I am doing wrong here ?
Thanks !
Jurgen van Bouchaute.
I can't seem to find the correct way to access that super implementation from another .p.
Maybe some code snippets will tell more :
PGM a.p: (which defines the function)
FUNCTION test returns CHAR (input p_something as char).
...
END.
PGM b.p : which will load a.p persistent and make it a session super.
...
RUN a.p persistent set w_handle.
SESSION:add-super-procedure(w_handle).
...
PGM c.p : a proc which wants to use the function test implemented in the session super proc.
...
What do I code here ??
Something like :
FUNCTION test returns CHAR (input p_something as char) in SUPER.
does not seems to work, as the function test is not recognised in the c.p code.
What I am doing wrong here ?
Thanks !
Jurgen van Bouchaute.