Using File-pattern and Column names

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
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Using File-pattern and Column names

Post by ag_ram »

Hi Folks

I use file pattern to read a set of .csv files. In each of these files , the first name is column names. I have set the "First row is column names" to true , It works when there is one file with that pattern name and fails when there are many files matching that pattern.

Any ways of resolving this from DS or using UNIX scripts?
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Post by ag_ram »

It is easy !

sed -e '1d' filepattern* > file.csv
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It doesn't fail - you merely get import warnings which, if these are the only ones, can be ignored (or even demoted to informational in this job).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply