Elardus, Well to me the thing would be to check for four blanks in positions 34-37. Looking for a specific match in a specific location, especially where that will be the most frequently encountered TRUE condition, seems to me to be the most efficient method.
Ron > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of > Elardus Engelbrecht > Sent: Saturday, December 18, 2010 8:08 AM > To: [email protected] > Subject: Re: [IBM-MAIN] Connect:Direct Needed Enhancement > > 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 ---------------------------------------------------------------------- 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

