Classification: Public

Bo

If I understand you correctly, you want everything from the 16th character of 
the message up to the character before the bracket and the word SESSION? In 
that case, would something like the following be suitable?

select nodename, substr(char(date_time), 1, 20) as TME, substr(char(message), 
16, instr(char(message), '(SESSION')-16) as MSG from actlog where (msgno=4005 
or msgno=4007 or msgno=4018 or msgno=4037 or msgno=4987) and 
date_time>(current_timestamp-24 hours) and domainname='LINUX_DOMAIN_SQKO'

Regards
Neil Schofield
IBM Spectrum Protect SME
Backup & Recovery | Storage & Middleware | Central Infrastructure Services | 
Infrastructure & Service Delivery | Group IT
LLOYDS BANKING GROUP
________________________________



Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. 
Registered in Scotland no. SC95000. Telephone: 0131 225 4555. Lloyds Bank plc. 
Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England 
and Wales no. 2065. Telephone 0207626 1500. Bank of Scotland plc. Registered 
Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC327000. 
Telephone: 03457 801 801. Cheltenham & Gloucester plc. Registered Office: 
Barnett Way, Gloucester GL4 3RL. Registered in England and Wales 2299428. 
Telephone: 0345 603 1637

Lloyds Bank plc, Bank of Scotland plc are authorised by the Prudential 
Regulation Authority and regulated by the Financial Conduct Authority and 
Prudential Regulation Authority.

Cheltenham & Gloucester plc is authorised and regulated by the Financial 
Conduct Authority.

Halifax is a division of Bank of Scotland plc. Cheltenham & Gloucester Savings 
is a division of Lloyds Bank plc.

HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in 
Scotland no. SC218813.

This e-mail (including any attachments) is private and confidential and may 
contain privileged material. If you have received this e-mail in error, please 
notify the sender and delete it (including any attachments) immediately. You 
must not copy, distribute, disclose or use any of the information in it or any 
attachments. Telephone calls may be monitored or recorded.
  • Help to O... Bo Nielsen
    • Re: ... Loon, Eric van (ITOPT3) - KLM
    • Re: ... David Ehresman
    • Re: ... Schofield, Neil (Storage & Middleware, Backup & Restore)
      • ... Bo Nielsen

Reply via email to