I'm trying to return a return status from a PERL Script being called by a STP using the XP_CMDSHELL.

Here is the code I'm executing on an 11.9.2 Sybase db

exec @ret_code = xp_cmdshell @Program,'return_status'

the @ret_code will only return pass/fail and not a return status from @Program.