Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 20 Apr 2006 @ 13:29:34 GMT


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


Subj:   Re: COMP-3
 
From:   Geoffrey Rommel

  how to convert a COBOL PIC S9(11)V99 COMP-3 to a TERADATA equivalent and have it readable ?  


If you are loading the data from a mainframe, BTEQ, FastLoad, and MultiLoad will do this conversion automagically. Just define the input data as decimal(13,2) and load it to a decimal(13,2) field.

If this data has somehow found its way to a Unix or Windows machine, you will have to convert it to a double or a printed string before loading it. Perl module Convert::IBM390 can do this. It is easiest if the Unix administrator agrees to install the module, but this is not necessary; "use lib" will allow you to install the module in your own library and load it at run time. You could even steal the packed2num conversion routine from the module.



     
  <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