Instead of this - EXEC SQL CALL SELECT_PSID_RIZ(761,01) END-EXEC ;
give this - CALL SELECT_PSID_RIZ(761,01) ;