copy first occurence only
Posted: Wed Jul 07, 2010 6:30 pm
Hi,
I have an input file (LRECL=100,RECFM=FB) as shown below:
I want to copy only the first occurence of "record 2007" to output.
Please help me with the SORT card.
Thanks.
I have an input file (LRECL=100,RECFM=FB) as shown below:
record 2010
record 2008
record 2007
record 2010
record 2007
record 2008
record 2010
record 2009
..
..
..
..
record 2008
record 2007
record 2008
record 2007
record 2010
record 2007
record 2008
record 2010
record 2009
..
..
..
..
record 2008
record 2007
I want to copy only the first occurence of "record 2007" to output.
Please help me with the SORT card.
Thanks.