The parameter marker (?) in a SQL statement used in SQLEXEC( ) or in a view definition is not followed by the parameter expression.
Add the parameter expression after the parameter marker.