I don't understand the problem. On VMS, neither 1 nor 0 are valid exit codes. So have the exit function map 0 into SUCCESS, and 1 into FAIL. Let anything else through unchanged... Or go with VMS$EXIT(VMS_CODE);. -- -- Peter da Silva `-_-' ...!hoptoad!academ!uhnix1!sugar!peter -- Disclaimer: These U aren't mere opinions... these are *values*.