The remote Shell does not support all shell commands. This is true on all AIX® (UNIX connection type), Intel Linux, and zLinux connections.
Rational® Developer for zEnterprise™ has both remote Shells and Ssh Terminals. The Ssh Terminals does not have the limitation that exists in Rational Developer for System z®.
To view the return code of a command, issue the command as: (command; echo $)