Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Junk values during DB2 unload

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Junk values during DB2 unload
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: 785
Location: Chennai, India

PostPosted: Wed Mar 26, 2008 3:12 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Mar 26, 2008 3:18 pm    Post subject: Reply to: Junk values during DB2 unload
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: 743
Location: Germany

PostPosted: Wed Mar 26, 2008 3:39 pm    Post subject:
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:
http://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    Post subject: Reply to: Junk values during DB2 unload
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Mar 26, 2008 4:01 pm    Post subject: Reply to: Junk values during DB2 unload
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

Active Member


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

PostPosted: Wed Mar 26, 2008 5:46 pm    Post subject:
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

Site Director


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

PostPosted: Wed Mar 26, 2008 9:00 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us