Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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: 10327
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: 965
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 Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us