Page 1 of 1

Error in Switch stage

Posted: Thu Nov 03, 2011 2:29 pm
by major
Hi,

I'm using Switch stage to populate 3 output files
I have selected User defined Mapping and put the below in Case block

Case="21"=0
Case="22"=0
Case="23"=0
Case="24"=0
Case="12"=1
Case="13"=1
Case="14"=1
Case="16"=1
Case="17"=1
Case="98"=2

I'm getting below error

Switch_25: Error occurred during initializeFromArgs()
Switch_25: Parse error on case string: Case="21"=0
Case="22"=0
Case="23"=0
Case="24"=0
Case="12"=1
Case="13"=1
Case="14"=1
Case="16"=1
Case="17"=1
Case="98"=2;
multiple `=' tokens were seen.
main_program: Creation of a step finished with status = FAILED.


Please help.

Posted: Thu Nov 03, 2011 3:14 pm
by jwiles
You should only enter the selector value and optionally the output link when mapping cases, as shown in the Information section of the stage editor:

<Selector Value>[=<Output Link Label Number>]

Example: "21"=0

Don't use the "multiple line editor" option. Enter one case at a time, adding them individually.

Regards,

Posted: Thu Nov 03, 2011 5:47 pm
by major
Now I'm not using single line selector
Still it shows the same error

Switch_25: Parse error on case string: "21"=0 "22"=0 "23"=0 "24"=0 "12"=1 "13"=1 "14"=1 "16"=1 "17"=1 "98"=2;
multiple `=' tokens were seen.

Posted: Thu Nov 03, 2011 7:51 pm
by jwiles
To repeat: Enter one case at a time, adding them individually.

"21"=0
"22"=0

Each condition is separate. You CANNOT combine them.

<a href="http://publib.boulder.ibm.com/infocente ... l">Example in the Parallel Job Developer's Guide</a>

Regards,