I'm wondering if it is possible to create a user defined function that takes a run-time parameter value. For this example the function takes a numeric value provided by the user and multiplies it by two. This is what I have... FUNCTION
-*DM_JOB_TYPE=512
DEFINE FUNCTION MYFUNC(MYPARM/D8 XDEFAULT '1')
MYFUNC/D8=MYPARM * 2;
END