I have a problem with calling db2 stored procedure (z/OS) with input parametr set as integer or decimal in db2 from php. Connection is made via PDO. With bindParam method I set input parametr as PDO::PARAM_INT. After that db2 returns
sqlcode -301 "THE VALUE OF INPUT HOST VARIABLE OR PARAMETER NUMBER 1 CANNOT BE USED AS SPECIFIED BECAUSE OF ITS DATA TYPE".

...
$ind0=0;
$stmt = $dbh->prepare("CALL DBZ0.DB2.TEST3(?)");
$stmt->bindParam(1,$ind0,PDO::PARAM_INT);
$stmt->execute();
...

If input param is character, it correctly works. Why does not php integer type match db2 integer/decimal type?
Maybe the best solution is to create new db2 stored procedure without integer parameters

Is anybody here who has met with such a thing? Or has solved?

Thanks for replies.