Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Fri, 08 Apr 2005 @ 15:01:16 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Extracting piece of data from a string of text
From:   Julie.Flanagan


We are trying to find a way of extracting the text string between 'ac=' and the comma after it from the string shown below in Example 1. (i.e. in Example 1, we want to extract '20')

I know we can do this using Position, and this works fine when the text we want remains at 2 characters long. But we are hitting problems when the length of the text we want is longer. (It can vary from one to 10+ characters ...)

     Example 1:
     'isocc=uk,cc=44,ac ,network=Openzone'        Want to extract '20'

     Example 2:
     'isocc=uk,cc=44,ac=7050,network=Openzone'      Want to extract '7050'

     Example :
     'isocc=uk,cc=44,ac=999,network=Openzone'       Want to extract '999'

Can we also do this using position???

Many thanks,

Julie Flanagan
MIS, Vodafone

  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023