Skip to Content
avatar image
Former Member

DM Package with SELECTINPUT PROMPT with more than one dimension

Hi, guys... I need your knowledge as I'm out of ideas...

I have a DM Package where I had all the dimensions I needed on a single screen with the standard SELECTINPUT Prompt and later the the respective TASK line, wich works just fine (except that it ends with failed status in DM Log, but does the logic correctly anyway... I'll ask fot that in another thread)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)

The thing is, for user convenience, we are trying to split the selection in 3 screens as some selections work as a destination member and the others work as a filter to data to run an allocation, and I'm having a real hard time to pass all the parameters/variables to make it work. Currently we have the following advanced logic:

PROMPT(SELECT,%FD%,,,"FUENTE_DATO")
PROMPT(SELECT,%ORD%,,,"ORDEN")
PROMPT(SELECT,,,,"%CURRENCY_DIM%,%TIME_DIM%,%ENTITY_DIM%,%ACCOUNT_DIM%")
INFO(%EQU%,=)
INFO(%TAB%,;)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,TAB,%TAB%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,MEMBERSELECTION,FD%EQU%%FD%%TAB%ORD%EQU%%ORD%)
TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,S02_IN_PORC.LGF)

Given that I have a few questions...

  1. When I use more than one SELECT Prompt, do I lose the ability to use the standard "SELECTION" task?
  2. How can I use multiple SELECT prompts where one of them has more than one dimension in it?
  3. Any other idea? :(

Thank you all for your help...

Vadim, if you are around, your comments would be surely appreciated!!!

Best regards,

Javier

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 03, 2017 at 07:57 AM

    Nothing wrong with advanced script. Multiple dimensions will be passed using %SELECTION% variable and SELECTION TASK resulting in %xxx_SET% variables. SELECTION TASK can be only one. Additional SELECTINPUT will be passed using memberselection resulting in $xxx$ variables.

    Add comment
    10|10000 characters needed characters exceeded