In reply to Ha.

My guess is that you are passing an invalid value for the ALTERNATIVE parameter. The valid values are {'ALL' 'GREATER' 'LESS' 'TWO'}.