If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Data conversion: CHAR(4) to SMALLINT

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 15:46
db2db2 db2db2 is offline
Registered User
 
Join Date: Oct 2003
Posts: 11
Data conversion: CHAR(4) to SMALLINT

All,

OS: AIX 5.2
UDB: V8.1
FIXPAK: 4

I am trying to load four byte char data into smallint field using LOAD utility, is there any option in the load syntax that can be used to do the data conversion before the load.

On the mainframe, I've used DECIMAL EXTERNAL(4,0) to do the data conversion.

Your help and suggestion will be greatly appreciated.

TIA
Chenni
Reply With Quote
  #2 (permalink)  
Old 04-01-04, 17:20
db2db2 db2db2 is offline
Registered User
 
Join Date: Oct 2003
Posts: 11
Re: Data conversion: CHAR(4) to SMALLINT

All,

UDB is doing the data conversion internally from char to smallint, so pLease ignore my earlier post.

Thanks
Chenni
Quote:
Originally posted by db2db2
All,

OS: AIX 5.2
UDB: V8.1
FIXPAK: 4

I am trying to load four byte char data into smallint field using LOAD utility, is there any option in the load syntax that can be used to do the data conversion before the load.

On the mainframe, I've used DECIMAL EXTERNAL(4,0) to do the data conversion.

Your help and suggestion will be greatly appreciated.

TIA
Chenni
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On