Page 1 of 1

Table Definition, Format tab

Posted: Fri May 27, 2005 3:23 am
by PhilHibbs
In Table Definitions, on the Format tab, there is a tick-box "First line is column names". What earthly use is this? I know what it means, but how do I get DataStage to actually use the setting in Table Definitions in a job? Loading the columns into a Seq File stage doesn't also load this setting, and dragging the Table Definition onto a link doesn't copy this setting either, so it appears to be a half-implemented feature. Am I missing something?

Posted: Fri May 27, 2005 3:29 am
by Precious
On the Format Tab, there is a load button. This is what you would use to actually load the Format of the columns that are being defined. This would be "First Line is Column Names", your quote characters, delimeters etc.

Hope that explains it,

Posted: Fri May 27, 2005 3:32 am
by PhilHibbs
Precious wrote:On the Format Tab, there is a load button.
D'oh! Why did I never notice that button?

It seems a bit unnecessary to have to do both steps separately. I can see the advantage of being able to do them separately, but having to is annoying.

I'm still rather surprised that dragging the Table Definition onto the link doesn't load this data - both sets of data (Properties & Columns) are attributes of the link, after all. I suppose the link only has one set of columns, but can have two different sets of properties.

Posted: Fri May 27, 2005 5:21 am
by Madhav_M
First line column names advices Datastage that incoming sequential file has first row as column heading thus it will not be written in the target.

Ex: Ur sequential file as the follwing contents
Empno, sal
1,100
2, 200
3,300

In format tab if u check first line is column names the first row(empnno, sal) will not be processed.

Posted: Fri May 27, 2005 7:38 am
by ray.wurlod
The Format tab is only for Sequential Files. There is an annotation on the page to this effect.

Posted: Fri May 27, 2005 8:00 am
by PhilHibbs
ray.wurlod wrote:The Format tab is only for Sequential Files. There is an annotation on the page to this effect.
Yes I know, and we use sequential files a lot. I would like to streamline the process of configuring them, since relying on the developer to manually apply the sequential file properties (specifically the "First line is column names" flag, and the "Default NULL string" value) is error-prone. I have a Perl script that scans the XML export for this kind of missing property, but it's a less-than-ideal solution.