How to call LANSA recursively

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
kevinbarber
Posts: 2
Joined: Tue Oct 03, 2017 7:17 pm

How to call LANSA recursively

Post by kevinbarber »

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
Attachments
QPDSPJOB2_.PDF
(34.56 KiB) Downloaded 787 times
QPDSPJOB_.PDF
(34.49 KiB) Downloaded 760 times
DSPJOGLOG.pdf
(4.16 KiB) Downloaded 817 times
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: How to call LANSA recursively

Post by atostaine »

did you see decimal data error?
Art Tostaine
kevinbarber
Posts: 2
Joined: Tue Oct 03, 2017 7:17 pm

Re: How to call LANSA recursively

Post by kevinbarber »

Hello

Yes I did see that, although I thought it might be a side effect of the main "recursive" error.

Regards
Kevin
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: How to call LANSA recursively

Post by atostaine »

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
Art Tostaine
Post Reply