Oninit Logo
The Down System Specialists
+1-913-674-0360
+44-2081-337529
Partnerships Contact
Finderr

-9049 A value entered as a command line parameter cannot be converted to the

data type type.

A PARAMETER statement in the DEFINE section defines one of the values from the command line as having data type type. However, the value that is given on the command line cannot be converted to that type. Check the following points:

* If type is numeric, check that the parameter can be read as a number.

* If type is MONEY, the parameter should nevertheless not include a currency symbol.

* If type is CHARACTER or VARCHAR, check that the parameter is not longer than the length that is defined for the variable.

* If type is DATETIME, check that the parameter is correctly punctuated (refer to the information on DATETIME and INTERVAL data in the user guide).

* If type is DATE, check that the parameter is correctly punctuated as a date.

Correctly punctuated DATE, DATETIME and INTERVAL values contain characters that might have special meaning to the operating system. The problem might be that the parameter was correct but needed quotes around it to protect it.