Calling and RDMLX function in IBM and passing parameters

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
User avatar
Dino
Posts: 133
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Calling and RDMLX function in IBM and passing parameters

Post by Dino » Wed Feb 19, 2020 6:45 am

Hi,

I understand you can call an RDMLX function in the AS400 using a line like these:

LANSA REQUEST(X_RUN) PARTITION('DEX') X_RUNADPRM('PROC=ORDERX FUNC=CALC PRTR=*PATH')

now, how can you send parameters, user parameters, like EMPNO=A1234 in that line?

Using UDEF? Any other way to send larger information than 256 bytes?

thank you

soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Calling and RDMLX function in IBM and passing parameters

Post by soa » Wed Feb 19, 2020 10:56 am

UDEF is the only way I've found.

BTW you also use

LANSA REQUEST(X_RUN) PARTITION('DEX') PROCESS(ORDERX) FUNCTION(CALC) X_RUNADPRM('PRTR=*PATH')

and X_RUNADPRM invoke the debugger thus

X_RUNADPRM('dbug=y dbht=myidepc:51234')

caseywhite
Posts: 140
Joined: Thu May 26, 2016 1:17 am

Re: Calling and RDMLX function in IBM and passing parameters

Post by caseywhite » Thu Feb 20, 2020 4:25 am

You can also use LANSA REQUEST(RUN) to call an RDMLX but you would be limited to passing fields up to 256 characters in length. While the documentation below says M@EXCHL does not support RDMLX, it would seem to mean that you can't call the function using LANSA REQUEST(X_RUN).

https://docs.lansa.com/14/en/lansa015/c ... nge_c2.htm

Post Reply