Solved

String Parsing and finding a word in Crystal Report

Posted on 2012-03-29
4
376 Views
Last Modified: 2012-06-28
Dear Team,

I have a Oracle CLOB field data which looks like this when I take the field using Crystal Report.

This ticket was submitted by aut Event Manager.Stored token values follow:GUID( MKUMAR057 )DOMAIN( TMATLKTWS1APP002 )SERVICE( TWS )ORIGIN( TWS )OBJECT( J15184 )OBJECTCLASS( SQL_W_USATLKIFSSQ32_001 )PARAMETER ( SQLWKYATLAPP002 )OBJECTLOCATION ( Unknown )FREETEXT( TMATLKTWS1APP002 : SQL_W_USATLKIFSSQ32_001 J15184 has abended in TWS schedule SQLWKYATLAPP002 )

If you check the first bracket starts with a word GUID(someID)
Can I return the someID value in the report using a formula.

The total string length might be long but it always starts with "This ticket was submitted by aut Event Manager.Stored token values follow:GUID( MKUMAR057 )

I have tried with Split and Left Function but unable to achieve what I want until now.
0
Comment
Question by:AnandSahoo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 37784677
I assume for the example you want to return MKUMAR057

Will there ever be ( or ) before the GUID?

Try this

Split(Split({YourField},')')[1],'(')[2]

mlmcc
0
 

Author Closing Comment

by:AnandSahoo
ID: 37786067
No there no ( or ) before GUID.\

I have tested this and its just working fine.

Thank You.
0
 

Author Comment

by:AnandSahoo
ID: 37904034
Dear mlmcc,

The above formula was working till now but sudenly i get some error. It shows some array range error saying value should start from 1 to.......
Can u plz help. The total string size is not always same.it can be of more length but starting format is always same.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 37904383
That means you have a field with no ) or ( in it.
Try this

If InStr({YourField},')') > 0 and InStr({YourField},'(') > 0 then
     Split(Split({YourField},')')[1],'(')[2]
Else
     "No GUID"

mlmcc
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question