Page 1 of 1

start after 5 records of input file.

PostPosted: Thu Nov 21, 2013 9:44 pm
by rajaranganathan
Hi All,

I have requirement that first 5 records of my input file should not affected by my outrec fields ( i mean the sort should not get applied to first 5 records of input file , but i need those lines copied to my output file).

in below sample input file my sort should only get affect from line 6 and above but i need line 1 to 5 copied in to m out put file. Could any please tell me the option or guide me for this.



sample input file:

line 1------------
line 2-----------
.
.
.
line 5-----------
line 6--------


Thank you very much for you kind help !!!

Re: start after 5 records of input file.

PostPosted: Thu Nov 21, 2013 10:26 pm
by BillyBoyo
Have a look at ICETOOL's DATASORT operator. This is designed to allow sorting of data whilst keeping header/trailer records where they are from input to output. It can treat more than one record as being in the header or trailer.