473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DSNTIAUL - Unload a Table that has a Null Ind

I'm unloading a Table that has two columns that allow nulls. One
column is null, the other is not. I have the following questions on
the output that I am seeing in the unloaded file....

1) The null indicator field for the column that is not null
contains x'00'... is this correct?

2) The null indicator field for the column that is null
contains a "?"... is this correct? (I expected "-1")

3) In both of the about, the field that is the null indicator
comes AFTER the null field... I was expecting it to be
BEFORE. In fact the IBM Utility manual says it will
appear BEFORE the field it represents.

Can anyone provide an explaination..? Am I doing something wrong?
Thanks
Tom

Nov 12 '05 #1
1 10209
"TomD" <td*****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I'm unloading a Table that has two columns that allow nulls. One
column is null, the other is not. I have the following questions on
the output that I am seeing in the unloaded file....

1) The null indicator field for the column that is not null
contains x'00'... is this correct?

2) The null indicator field for the column that is null
contains a "?"... is this correct? (I expected "-1")

3) In both of the about, the field that is the null indicator
comes AFTER the null field... I was expecting it to be
BEFORE. In fact the IBM Utility manual says it will
appear BEFORE the field it represents.

Can anyone provide an explaination..? Am I doing something wrong?

Thanks

Tom


When a null indicator is returned to the application program from a nullable
column in DB2, it takes up a half-word binary. This is true even if DB2 only
uses 1 byte internally when the data is stored on disk.

The null indicator is after the data when returned to the program, even if
it is before the data when stored internally on disk by DB2.

Therefore, I would assume (without looking at the manual) that the output
from DSNTIAUL would be PIC S9(4) COMP after the data if you were using a
COBOL record layout. A half-word binary takes two bytes and is stored in
hex.

I hope you know that you have read binary values in Hex, which you are not
doing if you see a "?".
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: razheev | last post by:
Hi, I have a Table which contains 1 million rows. I want to do an unload of the table and do some massaging (tranforming) of data and do a load to a different table where the column attributes are...
2
by: Lauren Hines | last post by:
Hello, I have read numerous post stating that the only way to unload an assembly (DLL in my case) is to create a separate AppDomain, load the assembly, then unload it by calling AppDomain.Unload....
1
by: Luis Pinho | last post by:
Hi There, I've got a server that is waiting for requests, these request correspond to calls to objects that are specified in assemblies stored in the GAC. To do this, I use reflection to call...
2
by: brianbender | last post by:
I am trying to load and unload assemblies dynamically and call methods and properties when loaded into an Appdomain I can load assemblies all day in the current AppDomain without references and...
0
by: Srini | last post by:
Hello, Using unload JCL utility DSNUPROC I unloaded a table(which is in unicode) to a dataset. I want the unload to be in EBCDIC format. I used the unload option EBCDIC, but I am not able to...
2
by: Srini | last post by:
Does anyone know if we can do SELECTIVE unload/load data from/to a Tablespace using Where condition on z/OS with IBM DB2 UNLOAD / LOAD utility? Thanks, Srini
0
by: Spider | last post by:
Hi, I want to know if the utility DSNTIAUL can be supported to DB2 to the version next 8.... Thanks. Regards, Spider
11
by: Timofmars | last post by:
I'm try to Unload DB2 data from a table into a record sequential file on NT. I can an unload on Mainframe, but it doesn't seem to be an option in NT. In NT, all I can do is export/import. I can...
6
by: Ronald S. Cook | last post by:
We have a Windows app that has one main form (a shell, sort of). We then load user controls into a panel on the form depending on what the user has selected. Our current code to unload the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.