Hello
I am currently experiencing a problem where LANSA is being called recursively and falling over.
I have a JDE program where the RPG has been modified to call a LANSA program to do some validation.
This has been working fine for years.
However, I now want to call the JDE program from another LANSA program, however, when the original LANSA program gets called it falls over.
(see job log and program dumps attached)
Please could you advise how this can be solved/worked around?
Regards
Kevin
How to call LANSA recursively
-
kevinbarber
- Posts: 2
- Joined: Tue Oct 03, 2017 7:17 pm
How to call LANSA recursively
- Attachments
-
- QPDSPJOB2_.PDF
- (34.56 KiB) Downloaded 788 times
-
- QPDSPJOB_.PDF
- (34.49 KiB) Downloaded 761 times
-
- DSPJOGLOG.pdf
- (4.16 KiB) Downloaded 818 times
-
kevinbarber
- Posts: 2
- Joined: Tue Oct 03, 2017 7:17 pm
Re: How to call LANSA recursively
Hello
Yes I did see that, although I thought it might be a side effect of the main "recursive" error.
Regards
Kevin
Yes I did see that, although I thought it might be a side effect of the main "recursive" error.
Regards
Kevin
Re: How to call LANSA recursively
There is probably something going on with activation groups or? JDE probably does a lot of interesting stuff there.
The new LANSA program calls JDE, then JDE tries to call LANSA but the Lansa environment is still in the call stack. Are you calling LANSA with the LANSA command? You might have to try and figure out how to call the LANSA function direct.
Art
The new LANSA program calls JDE, then JDE tries to call LANSA but the Lansa environment is still in the call stack. Are you calling LANSA with the LANSA command? You might have to try and figure out how to call the LANSA function direct.
Art
Art Tostaine