Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3510

String Parsing

$
0
0

Hi all,

 

I have a report that looks like this:

 

     requestor          date                            item_to change

 

john, doe (group1)

 

     john, doe          8/27/2015                    &Wrong Client&Other&

     john, doe          9/15/2015                    &Duplicate Entry&

 

Jane, doe

 

     jane, dane          11/12/2015               &Date of Service&Service Code&

 

 

 

 

What I want to do is Parse the item_to_change field, so when there are more than two & I will pull the second word out and
repeat the same information in the row below. So the report would look like this:

 

     requestor          date                             item_to_change

 

john, doe (group1)

 

     john, doe          8/27/2015                         &Wrong Client&

     john, doe          8/27/2015                         &other&

     john, doe          9/15/2015                         &Duplicate Entry&

 

Jane, doe

    

     jane, doe          11/12/2015                        &Date of Service&

     jane, doe          11/12/2015                         &Service Code&

 

I know how to parse the string with Split, but is there a way to copy the row with the and insert my desired word into the row below?


Viewing all articles
Browse latest Browse all 3510

Trending Articles



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