472,356 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,356 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 10024
"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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.