Column header repeat

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
r.julia
Participant
Posts: 23
Joined: Tue Jan 24, 2006 8:04 am

Column header repeat

Post by r.julia »

Hi,

I have a record like this:

|Number|Name|Country|
|9|Henry|France|
|10|Rooney|England|
|Number|Name|Country|
|10|Zidane|France|
|Number|Name|Country|
|3|Cole|England|

I want the output to have only the first column header and then the data:
|Number|Name|Country|
|9|Henry|France|
|10|Rooney|England|
|10|Zidane|France|
|3|Cole|England|

Thanks
J
Datastage is pretty interesting
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: Column header repeat

Post by sachin1 »

hope before processing this file you can use unix sort command ........
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: Column header repeat

Post by sachin1 »

hope before processing this file you can use unix sort command ........
r.julia
Participant
Posts: 23
Joined: Tue Jan 24, 2006 8:04 am

followup

Post by r.julia »

I cant sort. The data comes in a manner that ordering it is not advisable.
Datastage is pretty interesting
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In the transform stage just check for @INROWNUM greater than 1 and the columns eq to your header value of "|Number|Name|Country|" and just don't pass that through to the output.
Post Reply