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 > Varchar Unload

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-04, 15:34
zas zas is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
Varchar Unload

Hi,

I have searched this forum , but I did not find any thing related to my problem. I have a DB2 column defined as varchar(300) which is used to store dates in packed decimal form. The date is stored as an array of 5 bytes each. Now if there are 10 dates then the length of the column is 50 bytes. When I try to unload this column using DSNTIAUL, the first 50 bytes are unloaded as is , but the rest of 250 bytes is padded with low-zeroes (x'00') . Is there any option to change the pad character to spaces when unloading the data?

zas
Reply With Quote
  #2 (permalink)  
Old 09-21-04, 08:32
hurmavi hurmavi is offline
Registered User
 
Join Date: Jan 2004
Location: Europe, Finland, Helsinki
Posts: 60
Hi!
(...this seems to be a z/OS problem, version not known and my knowledge is from version 7)

I'm afraid, DSNTIAUL is extremely simple program. There are only one parameter to be given in SYSIN file (SQL or none) and it does not have direct effect on format.

But as you can use SQL, you may try to format that varchar-field to char, right?

Also some people have been using a post-processor (an extra step/program, that manipulate file afterwards - no SQL are needeed).


Cheers, Bill
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