How to exclude header lines from being sorter/filtered? 

For example, I have the following file:

FIRSTNAME     LASTNAME    YEAR    OTHERDATA
----------    ---------   ----    ---------
JOHN          SMITH       1945    eeeeeeeee
JOE           ZAWINUL     1932    rrrrrrrrr
GEORGE        ALTMARK     1954    fffffffff



I want to sort by lastname: 
FIRSTNAME     LASTNAME    YEAR    OTHERDATA
----------    ---------   ----    ---------
GEORGE        ALTMARK     1954    fffffffff
JOHN          SMITH       1945    eeeeeeeee
JOE           ZAWINUL     1932    rrrrrrrrr



Actually I see the solution: copy header to temp file (STOPAFT=2) and merget it 
with sortout, but I believe there is simpler way to do that. 



Regards
-- 
Radoslaw Skorupka
Lodz, Poland

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to