Posted: Mon Apr 20, 2009 6:05 pm Post subject: Sorting a sequential file
I am very new to the whole mainframe scene and am writing my first JCL not withouth trouble. I have the following question:
I have a sequential file that has lines with each 82 characters. I have to sort it on the last 2 characters (81,82) and if these characters are for example LA it should add that line to fileA and when it is LB it should add that line to fileB.
As you can see the SORT function doesn't give me enough options to actually filter on those two parameters, it just cuts a piece away and dumps it in a member.
Can anyone please help me on my way as I can see no way how to check every line inside a file using JCL.
Since you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum