I'm coding a script in order to validade an installation package following the steps:
In some specific cases I will need to terminate the current process and start a new one with some new parameters.
With any code inside my try catch block, whenever I terminate the process I receive a RESJOB and it works perfectly.
When my job is running a compilation ($SYSTEM.OBJ.Compile(.classes)) and receive a RESJOB, it does not catch the exception. It just terminate, so the environment is not destroyed.
Any ideas on how to handle this situation?
Thank you all
I also tried $$$THROWONERROR(sc,$SYSTEM.OBJ.Compile(.classes)), since it returns a status