Page 1 of 1

Calling and RDMLX function in IBM and passing parameters

Posted: Wed Feb 19, 2020 6:45 am
by Dino
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

Re: Calling and RDMLX function in IBM and passing parameters

Posted: Wed Feb 19, 2020 10:56 am
by soa
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')

Re: Calling and RDMLX function in IBM and passing parameters

Posted: Thu Feb 20, 2020 4:25 am
by caseywhite
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