Hi to all.
We need a range of COMPSTAT, forcing the job OK.
The code 65 to 77, force OK.
We have tried many ways but none validated:
Statament=*
Code = COMPSTAT>64 && COMPSTAT<78
DO OK
As I can do? or form the range
Thanks to all.
COMPSTAT between ranges
- philmalmaison
- Nouveau
- Posts: 1148
- Joined: 08 Jun 2007 12:00
- Location: Ile de France
You can modify your command or script to set the COMPSTAT like:
On Windows:
YourCommand & IF ERRORLEVEL 65 IF NOT ERRORLEVEL 78 SET ERRORLEVEL=65
Now you just have to check:
Statament=*
Code = COMPSTAT=65
DO OK
On Unix, it something like (dependend of the shell you use):
YourCommand ; if [ $? -ge 64 -a $? -lt 78 ]; then exit 65
On Windows:
YourCommand & IF ERRORLEVEL 65 IF NOT ERRORLEVEL 78 SET ERRORLEVEL=65
Now you just have to check:
Statament=*
Code = COMPSTAT=65
DO OK
On Unix, it something like (dependend of the shell you use):
YourCommand ; if [ $? -ge 64 -a $? -lt 78 ]; then exit 65