Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Case statement containing a greater than evaluation

$
0
0

 Hi, I am attempting to split the Message column of a Windows event log into two, for import into a database (max literal of 2000). This would require a greater than string length evaluation. The following is not acceptable to Log Parser:

CASE (STRLEN(Message)>2000)
        WHEN True Then SUBSTR(Message, 0, 2000)
        ELSE Message
    END AS Message1,

Any suggestions? 

Thanks. 


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>