IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Junk values during DB2 unload


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jeyanthi M

New User


Joined: 21 Mar 2008
Posts: 5
Location: India

PostPosted: Wed Mar 26, 2008 3:05 pm
Reply with quote

When I try to unload from DB2 table using DSNTIAUL, I am seeing junk values before every field present in my output file.

Please let me know how it can be corrected.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Wed Mar 26, 2008 3:12 pm
Reply with quote

Have you viewed the output file with proper copy book?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Mar 26, 2008 3:18 pm
Reply with quote

please review Your understanding on how DSNTIAUL works,
DSNTIAUL it' s an unload/reload utility,
the garbage/junk You see is binary info embedded in the unloaded records for a subsequent ( maybe ) reload
... DSNTIAUL will, for an unload, generate also the proper control statements for reload
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Mar 26, 2008 3:39 pm
Reply with quote

Hi Jeyanthi M !

No junk, but internal DSNTIAUL-Informations as Enrico told.

Also:

In this format, any nullable column is followed by a 1-byte binary field containing the null indicator. If the "From" column has a null value, the null indicator field for the corresponding "To" field contains "?", otherwise it contains 0.

Any decimal field occupies the minimum number of bytes needed to represent the data as a packed decimal field.

More informations:
publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2tools.inz.doc.ug/inzurselectexp.htm

Regards, UmeySan
Back to top
View user's profile Send private message
Jeyanthi M

New User


Joined: 21 Mar 2008
Posts: 5
Location: India

PostPosted: Wed Mar 26, 2008 3:58 pm
Reply with quote

Please let me know how can it be corrected.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Mar 26, 2008 4:01 pm
Reply with quote

why do You want to correct something that has been properly working in this way since the origins of DB2

if the DSNTIAUL format is not suitable for Your requirements use a different tool/utility
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Mar 26, 2008 5:46 pm
Reply with quote

Is it so hard to ignore fields you do not want? We (programmers) do this all the time.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 26, 2008 9:00 pm
Reply with quote

Hello,

Quote:
Please let me know how can it be corrected.
As nothing is wrong, nothing will be corrected.

What is needed is for you to come to a better understanding of what you have and dealing with this accoringly. As suggested, you might simply ignore the bits you are not interested in. I'd suggest that you do learn what these are, even though you will not use them for this requirement.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Load new table with Old unload - DB2 DB2 6
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Remote Unload of CLOB Columns DB2 6
Search our Forums:

Back to Top