James_Fenoulhet_5993

Find a certain string (ie time stamp) in a report from a job

Discussion created by James_Fenoulhet_5993 on Jul 2, 2015
Latest reply on Jul 3, 2015 by joel_wiesmann_automic
Hi guys,
I am hoping this will be an easy one for someone on here.

I have run a job which returns a certain string into the post process tab on the "last report" so the string returned is 
2015-07-02 08:32:47 - U00020408 "Start : Despatch ( 08:32:45 ) SPRE/2514195/2 ARBMS2-15.5"

this string may be different based on what the system is processing but will always have a time stamp inside it but not necessarily in brackets.

What i want is to strip out this time stamp so i can compare it to the current system time and work out the delay.

i have tried  the below scripting elements but can not get the results i am after, either there is an easier way to search and extract a certain string but at this moment in time i have not been on any formal training so am reliant on Automic staff and the community for help.

:set &HND# = PREP_PROCESS_FILE
:PROCESS &HND#
: SET &LINE1#=GET_PROCESS_LINE

Are there any tried and tested ways of extracting and manipulating the reports section of jobs? And are these documented anywhere for a newbie to get stuck into? Are there any stand alone guides\walkthroughs that are community supported?

Thanks

Outcomes