koden Posted January 22, 2007 Report Share Posted January 22, 2007 hello... I copy some text from a mail into T20 The first 3 or 4 lines I don't need. But I never know how much I don't need. BUT I know that I need all after a job number. This job nr. is BCKXXXXX xxx= a number thats never the same, but BCK is always there. How do I go to/find BCK and copy BCK and all text/numbers after BCK ??? Here you can see the mail: ---------------------------------------------------------------------------------------- Subject: Backup problem - please create trouble ticket oooo oooo Below information is autocollected backup problem information. oooo Please create the appropriate trouble ticket oooo Ticket description should NOT include these lines oooo BCK0036E TSS,tssinf4,2,TOLDSKAT_SQL_translog_tssinf4 Sch: translog Mstr: nbucph2ma Create trouble ticket severity 5 Dont call Storage guard. Failed 1 time(s). 2007/01/22 10:32:21 ------------------------------------------------------------------------------------------- as you can see i don't need all lines that have oooo in front. but i'm not sure that oooo always is there. Can I use COPY PART OF A TEXT ?? Quote Link to comment Share on other sites More sharing options...
kevin Posted January 22, 2007 Report Share Posted January 22, 2007 (edited) Try these commands: Variable Set Integer %N1% from Position of Text in Variable %T20% Variable Modify String: Copy Part of %T20% to %T20% <IVAR2:01:13:20:BCK><TMVAR2:10:20:20:N01:999999:> Edited January 23, 2007 by kevin Quote Link to comment Share on other sites More sharing options...
koden Posted January 23, 2007 Author Report Share Posted January 23, 2007 Thanks.... variable set integer %N1% from position in %T20% search text BCK and the variable modify string... This I understand... But waht happens in the IVAR command?? And where do I find that? Is this the modify string copy part of command? If yes then I will use: Variable modify string: copy part of text from T20 to T20 Starting at N1 But where to end ?? I can tell that the end always is a time stamp, if that can be used? Quote Link to comment Share on other sites More sharing options...
kevin Posted January 23, 2007 Report Share Posted January 23, 2007 But where to end ??You can enter a number bigger than the maximum length of your string. Try something like 9999 or 99999 or 999999. Quote Link to comment Share on other sites More sharing options...
koden Posted January 23, 2007 Author Report Share Posted January 23, 2007 aha... 999 because there is only space for 1000 in the program i have to paste in. Thanks... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.