Show TOC

Procedure documentationUsing MODIFYSCRIPT to Dynamically Pass Text to Logic Locate this document in the navigation structure

 

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:

Procedure

  1. Using the MODIFYSCRIPT variable, prompt for the year:

    PROMPT(TEXT,%TEXT%,"select a year")

  2. Pass the returned %TEXT% to the FormulaScript of the RunLogic task:

    TASK(RUNLOGIC,FORMULASCRIPT,"*FUNCTION MYYEAR=%TEXT%”)

  3. In the Data Manager logic, use the dynamically created function:

    *XDIM_MEMBERSET TIME=MYYEAR.INPUT.

Note Note

The logic name in the RunLogic task must be specified with the .LGF extension to enforce its validation at runtime.

End of the note.