02-12-2013 08:28 AM - edited 03-01-2019 08:58 AM
Is it possible for Tidal to look for specific exit codes instead of a range. I have a job where exit codes 0 5,6,7 are good anything would be considered abnormal. Is there a way to have tidal only look for 0,5,6,7?
Solved! Go to Solution.
02-12-2013 10:26 AM
There's almost always a way
We use powershell quite a bit and force different exit codes...and different actions
I would leave the standard (zero) and create an additional event action to handle exits of 5,6, and 7
You could test behavior to make sure it meets your needs with a test job
Command
POWERSHELL
Parameters
Write-host Exit code 5; Exit(5)
Rinse / Repeat with other exit codes
02-12-2013 09:46 AM
Hi Bruce,
If you're running a script, you can hardcode/echo 0, 5, 6, 7 and set them to 0 for completed normally, and everything else as abnormal. Or you can hardcode/echo (0 | 5 | 6 | 7) along with a complete normally identifier, for example, exit code: 7 [cpnrm]+[defintion of exit code 7]. This way, you can scan output: normal string "cpnrm"
BR,
Derrick Au
02-12-2013 10:35 AM
Derrick,
Thanks for the information, they are not running scripts, the group doing this is using a microfocus serfer to emmulate a mainframe system using jcl, etc, and they have toose conditions in their jcl. All I will get back from that server is the last condition code from the job.
02-12-2013 09:52 AM
I just opened a ticket with that question a couple of weeks ago.
Answer: Tidal cannot do it...they did submit an "enhancement" request....not sure how that process works, or if it will ever make it into the product.
02-12-2013 10:31 AM
Steve,
Thanks, I thought that was going to be the case. I have a group using Tidal to submit jobs to a microfocus server, to emulate a mainframe system on a Unix server, and they have these condition codes in their jcl.
The enhancement request from my past experience they will usually work on something like that, but only if enough customers send in requests asking for that type of enhancement, so I think I will shoot them one to, who knows it might help.
02-12-2013 10:26 AM
There's almost always a way
We use powershell quite a bit and force different exit codes...and different actions
I would leave the standard (zero) and create an additional event action to handle exits of 5,6, and 7
You could test behavior to make sure it meets your needs with a test job
Command
POWERSHELL
Parameters
Write-host Exit code 5; Exit(5)
Rinse / Repeat with other exit codes
02-12-2013 10:36 AM
Marc,
Thanks for that information, that is what I had brainstormed as a solution, and we are going to try it with one of the jobs. I think likely that will be the work around for us.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: