NULL & Sequential File
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
NULL & Sequential File
All,
what is the relationship between NULL and a sequential file?
does sequential file allows NULL ? say for example, if i declared variables like below
eno int No (Allow Null)
age int Yes (Allow Null)
ename varchar(50) No (Allow Null)
I have designed a jpb like below
ODBC --> Transformer ---> Sequential file
assume age has some NULL values in the table.
emp table : 50 rows
age is not null - 45 rows
age is null - 5 rows
how many rows will be transferred to the sequential file? i didn't try this. Because this question just came to mind when i open this site from my home. i don't have datastage in my home pc. i can use datastage only from my office.
what is the relationship between NULL and a sequential file?
does sequential file allows NULL ? say for example, if i declared variables like below
eno int No (Allow Null)
age int Yes (Allow Null)
ename varchar(50) No (Allow Null)
I have designed a jpb like below
ODBC --> Transformer ---> Sequential file
assume age has some NULL values in the table.
emp table : 50 rows
age is not null - 45 rows
age is null - 5 rows
how many rows will be transferred to the sequential file? i didn't try this. Because this question just came to mind when i open this site from my home. i don't have datastage in my home pc. i can use datastage only from my office.
Karthik
Sequential files allow nulls, yes. The Server product makes handling them a little easier, basically you'll end up with a empty string / field unless (of course) you are writing out to a fixed-width file. In that case you'll need to supply something of the appropriate size for the field, typically spaces.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Technically, because there are no data types in a text file (only text), text files do NOT support NULL. Therefore your metadata need to describe how NULL is represented within the file/field.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
If i didn't supply something...what will happen?chulett wrote:Sequential files allow nulls, yes. The Server product makes handling them a little easier, basically you'll end up with a empty string / field unless (of course) you are writing out to a fixed-width file. In that case you'll need to supply something of the appropriate size for the field, typically spaces.
Karthik
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
[In parallel jobs only...]
There is a button on the Format properties called Defaults> (or something like that). This allows you to set the current format settings as default, replace the current with your most recently saved default, or to restore factory settings.
![Embarassed :oops:](./images/smilies/icon_redface.gif)
There is a button on the Format properties called Defaults> (or something like that). This allows you to set the current format settings as default, replace the current with your most recently saved default, or to restore factory settings.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 729
- Joined: Tue Apr 28, 2009 10:49 pm
oh...ok.ray.wurlod wrote:[In parallel jobs only...]![]()
There is a button on the Format properties called Defaults> (or something like that). This allows you to set the current format settings as default, replace the current with your most recently saved default, or to restore factory settings.
Karthik