Hi Friends,
In Data Stage , is it possible that a single file can be defined as both Delimitted and Fixed width at a time. Or is there any other options available to do this? In my case, first few columns have delimiter and rest of the columns are fixed width.
Please guide me.
Thanks,
Senthil P
Delimitted and Fixed Width in Single File??
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
You could try...
In the sequential file stage define columns, one each for the delimited columns, plus one extra that will contain the fixed width part. The fixed width part will be the last column of the delimited cols, you can define as VarBinary, of the number of bytes you're expecting.
Then use a Column Import stage to convert the fixed width column into its constituent parts, applying the meta data as required.
Hope this helps!
In the sequential file stage define columns, one each for the delimited columns, plus one extra that will contain the fixed width part. The fixed width part will be the last column of the delimited cols, you can define as VarBinary, of the number of bytes you're expecting.
Then use a Column Import stage to convert the fixed width column into its constituent parts, applying the meta data as required.
Hope this helps!