Sequential File Layout to datastage table def's

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
theone
Participant
Posts: 36
Joined: Tue Oct 06, 2009 10:04 am
Location: Michigan

Sequential File Layout to datastage table def's

Post by theone »

Is there any way converting file layouts in excel to sequential file definitions in datastage

I have like following:

Name CHAR 1
Address CHAR 80
City CHAR 80

What I do so far is just copy column names in another sheet as a single row and export as delimited file then manually select data type and enter lengths

Any help is appreciated,
Thank you.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You could slightly modify your process to produce a schema file.

{
Name:string[1];
Address:string[max=80];
City:string[max=80];
}

Is Name really Char(1) data type?
Last edited by ray.wurlod on Tue Sep 18, 2012 8:38 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
theone
Participant
Posts: 36
Joined: Tue Oct 06, 2009 10:04 am
Location: Michigan

Post by theone »

Thank you for the reply, I have filters used while reading a file. If I use schema file then I am not able to use filter scripts.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You did not state that in your original questions. I can only read minds at short range.

While creating table definitions in the DS_METADATA table is possible, it is not for the faint-hearted. There are 156 columns in this table, but the file dictionary only specifies the first five. The remainder of the record structure is not published.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ray.wurlod wrote:You did not state that in your original questions. I can only read minds at short range.
:shock:

Always suspected... now confirmed.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply