Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 10 Dec 2004 @ 02:33:14 GMT


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


Subj:   Re: BTEQ Cast Decimal to Char on MVS
 
From:   Fred Pluebell

FORMAT (applied to the numeric field), followed by converting to character should do what you want:

     SELECT CAST(CAST(PAT_ENC_CSN_ID AS FORMAT 'Z(17)9') AS CHAR(18))


     
  <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