start after 5 records of input file.

IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

start after 5 records of input file.

Postby rajaranganathan » Thu Nov 21, 2013 9:44 pm

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 !!!
Posts: 27
Joined: Thu Oct 10, 2013 6:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: start after 5 records of input file.


Re: start after 5 records of input file.

Postby BillyBoyo » Thu Nov 21, 2013 10:26 pm

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.
Global moderator
Posts: 3735
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 254 times



  • Related topics
    Last post