$ZSYstem

$ZSY[STEM] holds the value of the status code for the last subprocess invoked with the ZSYSTEM command.