Probleme Trapping messages in sysout

Tools and several solutions to manage Control-M products
Post Reply
User avatar
oyooman
Nouveau
Nouveau
Posts: 7
Joined: 17 Sep 2010 12:00

Probleme Trapping messages in sysout

Post by oyooman » 16 Nov 2010 2:24

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

User avatar
Walty
Nouveau
Nouveau
Posts: 473
Joined: 20 Jan 2006 12:00

Post by Walty » 17 Nov 2010 3:41

Hi,

Try this : Stmt = * , Code = *test*
Best regards
Walty

User avatar
oyooman
Nouveau
Nouveau
Posts: 7
Joined: 17 Sep 2010 12:00

Post by oyooman » 17 Nov 2010 4:35

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.

User avatar
Walty
Nouveau
Nouveau
Posts: 473
Joined: 20 Jan 2006 12:00

Post by Walty » 17 Nov 2010 5:01

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
Best regards
Walty

User avatar
matom
Nouveau
Nouveau
Posts: 37
Joined: 29 Nov 2006 12:00
Location: Ile de France

Post by matom » 23 Nov 2010 12:01

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

Post Reply