The DFSORT OPTION RESALL influences how DFSORT allocates or reserves resources—typically central storage (memory) and/or sortwork. The exact behavior depends on your DFSORT (or IBM z/OS Beyond Sort) version and how your installation has configured the product. RESALL is a tuning option that can help control when resources are requested or reserved, which may reduce allocation failures or align with site resource policies. This page explains what RESALL is for, how it relates to other options, and where to find version-specific details.
A sort or merge step needs resources: memory for sort work and temporary datasets (SORTWK) for data that does not fit in memory. DFSORT can request or reserve these at different times and in different ways. RESALL is an option that affects this resource allocation behavior—for example whether DFSORT reserves a certain amount up front, or how it requests work space. The goal is often to avoid failures (e.g. ICE046A, ICE083A) when resources are tight or to make allocation more predictable. Because the precise meaning and syntax of RESALL can vary by product release and installation, the following is a general overview; you should confirm details in your DFSORT documentation.
RESALL is usually specified in the OPTION statement in SYSIN. Some versions may support it on the EXEC PARM or via DFSPARM. The keyword may stand alone (OPTION RESALL) or take operands (e.g. RESALL=value). Check your DFSORT Application Programming Guide for the exact form and any allowed values.
12OPTION RESALL,DYNALLOC,FILSZ=E5000000 SORT FIELDS=(1,80,CH,A)
Combining RESALL with DYNALLOC and FILSZ is common when tuning for large or variable workloads; the interaction is product-dependent.
| Option | Typical role |
|---|---|
| RESALL | Affects how/when resources are allocated or reserved (version-specific). |
| DYNALLOC | Allows dynamic allocation of sortwork datasets. |
| SIZE / MOSIZE | Controls maximum memory object size for sort work. |
| FILSZ | Provides size estimate so DFSORT can plan sortwork and memory. |
RESALL does not replace DYNALLOC, SIZE, or FILSZ; it can influence the overall allocation strategy. For example, with RESALL, DFSORT might reserve resources earlier or request a minimum amount, depending on your version. Use your product documentation to see the exact effect and recommended combinations.
If your documentation does not mention RESALL, or your job runs fine without it, you may not need to specify it. When in doubt, consult your systems programmer or DFSORT installation guide.
Because RESALL is not always described in brief tutorials and its behavior can differ by release:
When you need tables to sort cards, you can either grab them when you need them or say “I need tables now” at the start. RESALL is like telling the teacher “reserve my tables at the beginning” so they are set aside for you. The exact rules (how many tables, when) depend on your school’s (installation’s) rules, so we check the rule book (documentation) to see exactly what RESALL does.
1. What does OPTION RESALL affect in DFSORT?
2. When might you use OPTION RESALL?
3. How does RESALL relate to DYNALLOC and SIZE?
4. Where do you specify RESALL?
5. Why might documentation for RESALL be limited in generic tutorials?