Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 26 Apr 2006 @ 14:54:32 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Extracting word from LOGONSOURCE
 
From:   Victor Sokovin

I'll show you how to find the second blank's position, OK?

     sel '(TCP/IP) 0F55 111.186.14.52 ABCD 14722 WORD3 APPL5 01 LSS'
     SOME_STRING,
     position (' ' in  SOME_STRING) FIRST_BLANK_IDX,
     substring(SOME_STRING from FIRST_BLANK_IDX + 1) SOME_STRING_1,
     position (' ' in  SOME_STRING_1) + FIRST_BLANK_IDX SECOND_BLANK_IDX ;

Regards,

Victor



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