add status variable output to System() app (issue #5121)