You can use the MODIFYSCRIPT variable to dynamically pass a text string to logic in the Data Manager. For example, a user who wishes to dynamically pass a text string representing a year (which is a portion of the *XDIM_MEMBERSET instruction) could use the following steps:
Using the MODIFYSCRIPT variable, prompt for the year:
PROMPT(TEXT,%TEXT%,"select a year")
Pass the returned %TEXT% to the FormulaScript of the RunLogic task:
TASK(RUNLOGIC,FORMULASCRIPT,"*FUNCTION MYYEAR=%TEXT%”)
In the Data Manager logic, use the dynamically created function:
*XDIM_MEMBERSET TIME=MYYEAR.INPUT.
Note
The logic name in the RunLogic task must be specified with the .LGF extension to enforce its validation at runtime.