Phil, maybe you should try @USER.RETURN.CODE. I don't know if you can control the values in @SYSTEM.RETURN.CODE.
Rich Richard Sammartino Systems Analyst School District of Philadelphia 440 N Broad Street Philadelphia, PA 19130 Phone (215) 400-5086 Fax (215) 400-4411 ----- Original Message ----- From: "Phil Walker" <[email protected]> To: "U2 Users List" <[email protected]> Sent: Wednesday, March 16, 2011 5:01:41 PM Subject: [U2] [UV] Uvsh exit status and @SYSTEM.RETURN.CODE Hi all, I am trying to detect the success of failure of a BASIC program when running from UNIX. I was going to use @SYSTEM.RETURN.CODE setting to do this, hoping that the exit status of uvsh would reflect the value set for @SYSTEM.RETURN.CODE but it appears this is not the case. Does anyone know if this works and I am just missing something silly? Possibly VOC entry process mode setting or something? e.g. uvsh "MYBASICPROGRAM SUCCESS" would return exit status of 0 uvsh "MYBASICPROGRAM FAILURE" would return exit status 1 uvsh "MYBASICPROGRAM" would return 9 SUBROUTINE MYBASICPROGRAM @SYSTEM.RETURN.CODE = 9 Get(Arg.) EXITSTATUS ELSE STOP BEGIN CASE CASE EXITSTATUS = 'SUCCESS' @SYSTEM.RETURN.CODE = 0 CASE EXITSTATUS = "FAILURE' @SYSTEM.RETURN.CODE = 1 END CASE RETURN This is a contrived example, but shows what I am trying to do with @SYSTEM.RETURN.CODE..... Cheers Phil. _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
