Dataset vs Sequential file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Marley777
Premium Member
Premium Member
Posts: 316
Joined: Tue Jan 27, 2004 3:26 pm

Dataset vs Sequential file

Post by Marley777 »

I am creating a dataset in 1 job, that is being brought into another job, but it isn't giving me static results.

However, when I use a sequential file, the data is as expected.

Why the difference?


Thanks
RobertScarbrough
Participant
Posts: 24
Joined: Fri Oct 01, 2004 1:43 pm
Location: USA

Re: Dataset vs Sequential file

Post by RobertScarbrough »

I've done this several times with no problem. Can you be more specific on what is different in this case between the two runs?
Marley777
Premium Member
Premium Member
Posts: 316
Joined: Tue Jan 27, 2004 3:26 pm

Post by Marley777 »

job 1 creates a dataset.

job 2 reads in the dataset from job 1.

we get null values in some fields.

but if

job 1 creates a sequential file
job 2 reads in the sequential file from job 1
all data looks good.

we don't know what this is.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How are you specifying the DataSet? In particular, how are you partitioning the data when creating it in Job1?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mouthou
Participant
Posts: 208
Joined: Sun Jul 04, 2004 11:57 pm

Post by mouthou »

I also had this problem. when the working with the Dataset and the sequential file in the same job. After running the job, when I saw the data, it was all NULLs :shock: :!: . Any one knows the reason. I remember reading from a sequential file and putting in a dataset. and the dataset contains nulls where expected some values.

Thanks[/quote]
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The default in a Sequential File stage is to report a zero-length string ("")as NULL. You can override this behaviour in the properties. Null field value property in parallel, NULL value property in server.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mouthou
Participant
Posts: 208
Joined: Sun Jul 04, 2004 11:57 pm

Post by mouthou »

But the nulls were displayed in Dataset stage and that too for all the records (not few records where the values are defaulted as you said). :? Instead of dataset, I used sequential file stage at the end. I got the values expected. Any idea why this is. Any problem with the dataset while uploading the data from sequential file.

Thanks,
dsxdev
Participant
Posts: 92
Joined: Mon Sep 20, 2004 8:37 am

Post by dsxdev »

I had simailar kind of problem.
The issue could with the metadata. Are you able read the data in the first job properly.
Happy DataStaging
Marley777
Premium Member
Premium Member
Posts: 316
Joined: Tue Jan 27, 2004 3:26 pm

this is a bug

Post by Marley777 »

Hello, thanks to all for answering my original post. My problem all along is due to a bug. I just found this out from Ascential. Below is the description from Ascential.


The fix for the problem was something that required fixes in many different
modules (That is why it could not be back ported to 7.0). For this reason, I
can't get a detailed description of all the parts of the code that were
fixed. Here is the description from engineering of what the exact problem
was:

The modify operator has a feature where it will do a block copy of some kind
instead of a field by field copy in certain circumstances. But, there is
(was) a bug in cases where real numbers in the input were equal to null.
Some of the non-null fields in the input were being set to null in the
output.

Since this was a problem with the block copy and not the dataset stage
itself, the bug effected other stages as well (It was originally reported
with the copy stage).
Post Reply