You should not use RESETRC before commands
that depend on the success of preceding commands.
RESETRC only resets return codes issued for SMP/E commands. It
does not affect the maximum return code set when SMP/E itself fails.
That return code is always set to the highest return code issued for
any command processed during that calling of SMP/E.