in reply to Getting error while invoking a SQL Procedure

The error would indicate otherwise but your code is missing a space after BEGIN in:

$sql = "BEGIN"."INTRA.SP_LOG_CONSOLE (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);". +"END;";

Otherwise looks ok to me.