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: 788
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: 10274
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: 757
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: 10274
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: 964
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 BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 1 Tue Jul 25, 2017 12:12 am
No new posts replacing junk with hyphen Nitin32 DFSORT/ICETOOL 10 Fri Jun 02, 2017 7:47 pm
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm


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