hello
i have a problem while i try to trap some messages in my job's sysout
when the sysout is complete ( no backspace or truncated sysout )
On Statement = "*", Code = "test"
works fine
but when the sysout looks like
************************\
**********test***********\
the step of the job goes wrong.
is there something i made wrong ?
thx in advance
Probleme Trapping messages in sysout
same problem,
sysout :
Mot **************************************************************************\
***********************************specifique :********************************\
************* toto *********************
the problem is that when the line returned by the script is too long the line is truncated, then the step seems not able to trap the specified word.
(i've tested code = * toto * *toto* same result, as example i've tried code = *Mot* and the step worked)
PS : seems crazy ... but i think something's wrong somewhere.
sysout :
Mot **************************************************************************\
***********************************specifique :********************************\
************* toto *********************
the problem is that when the line returned by the script is too long the line is truncated, then the step seems not able to trap the specified word.
(i've tested code = * toto * *toto* same result, as example i've tried code = *Mot* and the step worked)
PS : seems crazy ... but i think something's wrong somewhere.
Hi,
Suggestion:
The length of the Sysout line is configurable with parameter SYSOUT_WINDOW_SIZE (min 80 max 132)
If you want to change the wrapping width to 132 try this:
- Add or change the following line to the file $CONTROLM/ctm_server/data/config.dat : SYSOUT_WINDOW_SIZE 132
- Recycle CONTROL-M/Server to applied change
Suggestion:
The length of the Sysout line is configurable with parameter SYSOUT_WINDOW_SIZE (min 80 max 132)
If you want to change the wrapping width to 132 try this:
- Add or change the following line to the file $CONTROLM/ctm_server/data/config.dat : SYSOUT_WINDOW_SIZE 132
- Recycle CONTROL-M/Server to applied change
Best regards
Walty
Walty
Hi,
The searched string must be in the first 132 chars, even if SYSOUT_WINDOW_SIZE 80 (sysout display parameter).
e.g.:
shell:
#!/bin/sh
echo "12345678910 345678 20 345678 30 345678 40 345678 50 345678 60 345678 70 345678 80 345678 90 345678 100 45678 110 45678 120 45678 130 4TOTO1er zzzzzzz"
cat E/scripts/TestOnStatement.txt
file TestOnStatement.txt:
12345678910 345678 20 3456
78 30 345678
40 345678 50 345678 60 345678 70 3TOTO2eme 345678 90 345678 100 45678 110 45678 120 45678 130 45678 140 TOTO3eme
TOTO1er : On Statement critera was not satisfied
TOTO2eme: Do performed
TOTO3eme: On Statement critera was not satisfied
Regards
Bonjour
Seules les 132 premiers caractères sont analysés. (toto est en colonne 172)
voir l'exemple ci-dessus.
Cordialement
Michel
The searched string must be in the first 132 chars, even if SYSOUT_WINDOW_SIZE 80 (sysout display parameter).
e.g.:
shell:
#!/bin/sh
echo "12345678910 345678 20 345678 30 345678 40 345678 50 345678 60 345678 70 345678 80 345678 90 345678 100 45678 110 45678 120 45678 130 4TOTO1er zzzzzzz"
cat E/scripts/TestOnStatement.txt
file TestOnStatement.txt:
12345678910 345678 20 3456
78 30 345678
40 345678 50 345678 60 345678 70 3TOTO2eme 345678 90 345678 100 45678 110 45678 120 45678 130 45678 140 TOTO3eme
TOTO1er : On Statement critera was not satisfied
TOTO2eme: Do performed
TOTO3eme: On Statement critera was not satisfied
Regards
Bonjour
Seules les 132 premiers caractères sont analysés. (toto est en colonne 172)
voir l'exemple ci-dessus.
Cordialement
Michel