DFSORT's substring function will include (or omit) records that contain a specific string. If that's what you want, then SS will do it.
If that's not what you want, then please explain in more detail what you do want as it's unclear. It sounds like you want to extract "pepe" from each line but if you know what you want to extact you could just hardcode it -> C'pepe', so I'm guessing that's not what you want.
no have any idea that substring (SS) could be used with DFSORT
If 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:
I need to improve the performance of a JCL, and all i want is to move the sortwks to memory, i think the jcl will run much more quicky....or at least, if the utility calculate the optimun numer of sortwks and space need it, will increase best performance of the job.
Since for the job shown you are doing a copy, not a sort, you don't need SORTWKs and you SHOULD eliminate them. SORTWKs are only used for a sort, not a copy or merge.
If you're asking in general about SORTWKs for a sort, it is better to NOT specify them so DFSORT can allocate the work data sets dynamically.
Is posible execute the sortwks in memory, not in disk?
DFSORT will perform a memory only sort if possible. Increasing the memory available to DFSORT can help it do that up to a point. If DFSORT cannot do a memory only sort, then it will dynamically choose among a memory object sort, hipersorting, data space sorting and SORTWKs to give the optimum sort.