When supported by your DFSORT (or IBM z/OS Beyond Sort) product and installation, parallel processing allows the sort or merge to use multiple threads or subtasks. That can reduce elapsed time by using more than one CPU or engine. The option is often referred to as OPTION THREADS or similar; the exact keyword, syntax, and defaults depend on your product version. This page explains what parallelism means in the context of DFSORT, when it can help, and how it relates to other tuning options like SIZE and DYNALLOC.
A traditional sort runs as a single flow of work: read data, build runs, merge, write output. In a parallel design, the product can split work across multiple threads or subtasks—for example, one thread reading and building runs while another merges, or several threads each sorting a portion of the data. On a system with multiple CPUs or engines, that can use more of the available capacity and reduce elapsed time. DFSORT (and z/OS Beyond Sort) may support this via an option such as THREADS; the exact implementation and option name are product-dependent.
For small sorts, the overhead of coordinating threads can outweigh the benefit. So parallelism is typically a tuning option for larger, CPU-bound workloads.
If your product supports a THREADS (or similar) option, it is usually specified in the OPTION statement in SYSIN or via the EXEC PARM/DFSPARM. The option might take a value (e.g. number of threads) or be a simple switch. Example (syntax may vary):
12OPTION THREADS=4,SIZE=MAX,FILSZ=E10000000 SORT FIELDS=(1,80,CH,A)
The allowed values and default (e.g. whether parallelism is on by default) depend on your DFSORT/Beyond Sort release and installation. Check your Application Programming Guide for “THREADS,” “parallel,” or “multi-task.”
Parallelism does not replace memory or sortwork tuning. You still need:
So THREADS is often used together with SIZE, FILSZ, and DYNALLOC when tuning large sorts. Your product’s tuning guide should describe recommended combinations.
Not every DFSORT or sort product offers the same parallelism features. Some releases may have no THREADS option; others may use a different name (e.g. a PARM value or installation option). IBM z/OS Beyond Sort and newer DFSORT releases may document options that older DFSORT does not have. If you cannot find “THREADS” in your documentation, search for “parallel,” “multi-task,” or “concurrent” in the index, or ask your systems programmer what is available for your installation.
Sorting cards alone means one person does everything. If we have four friends (threads), we can split the deck: each person sorts a pile, then we merge the piles. That can be faster if we have enough table space (memory and sortwork) and enough friends (CPUs). THREADS is like saying “use this many friends.” The exact way to say it depends on your school’s (product’s) rules!
1. What does OPTION THREADS (or parallel processing) relate to in DFSORT?
2. When might parallel sort processing help?
3. How do you enable or tune THREADS (parallelism) in DFSORT?
4. What might limit the benefit of parallel sort?
5. Is THREADS supported in all DFSORT versions?