if ( lex_match_id (lexer, "INPUT"))
role = ROLE_INPUT;
else if ( lex_match_id (lexer, "TARGET"))
- role = ROLE_OUTPUT;
+ role = ROLE_TARGET;
else if ( lex_match_id (lexer, "BOTH"))
role = ROLE_BOTH;
else if ( lex_match_id (lexer, "NONE"))
else if ( lex_match_id (lexer, "SPLIT"))
role = ROLE_SPLIT;
else
- return CMD_FAILURE;
+ {
+ lex_error (lexer, NULL);
+ return CMD_FAILURE;
+ }
if (!parse_variables (lexer, dataset_dict (ds), &v, &nv, PV_NONE))
return CMD_FAILURE;