the sort card that you gave here is working fine. But In the worst case scenario, If the actual records contains the string 'rows selected' then those records are also removing in addition to the trailer record.
Here I need to point only the trailer record that is the last record in the file.
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
M K K,
Quote:
But In the worst case scenario, If the actual records contains the string 'rows selected' then those records are also removing in addition to the trailer record.
Follwoing is one of the the today's post. Might be you can use 'the jcl' and develop your own sort card -
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
M K K,
Here's a DFSORT job that will do what you asked for. I assumed your input file has RECFM=FB and LRECL=80, but the job can be changed appropriately for other attributes.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
You can now do this kind of thing quite easily using the new SUBSET operator of DFSORT's ICETOOL available with z/OS DFSORT V1R5 PTF UK90013 (July, 2008):