The example above is based on the assumption that none of the input parameters can have null values. To allow null values, code a statement like this:
EXEC SQL CALL GETEMPSVR (:V1 :IV1, :V2 :IV2) END-EXEC
where :IV1 and :IV2 are indicator variables for the parameters.