Ron Hawkins wrote:

>Not that I have written much automation code, but wouldn't it be simpler
just to check for the characters "COMP" in the positions 1-4 of the message
text, and then branch your automation code accordingly? There's nothing
terribly inefficient in that.

Good reply, I agree with it, but the OP did not mentioned that the message 
have space reseverd for the hashes:

Successfull transfer:

2----+----3----+----4----+----5----+----6----+-
 SVTM052I          COMPLETED  00000000/SDE1707I

Transfer going bad:

2----+----3----+----4----+----5----+----6----+-
 SVTM052I     #### COMPLETED  00000008/SDE1708I

Ron, perhaps you can review this column specific layout and amend your good 
reply? (Disclaimer, I have NEVER written automation code.)

Perhaps parsing for these two strings
'SVTM052I          COMPLETED'
 and 
'SVTM052I     #### COMPLETED' ?

Of course, there are other replies which the OP can check too.

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to