Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

DFSORT helper

Build SORT, INCLUDE and OUTREC statements, or explain existing ones.Use this when you need SORT, INCLUDE/OMIT or OUTREC statements, or want to understand ones you already have.

Simulation, confirm on z/OSON THIS DEVICE · NOTHING UPLOADEDCounting requests…
How to use this tool

What it does

Builds SORT, INCLUDE, OMIT and reformatting statements from a form, or explains statements you paste, and tries them on sample records.

How to use it

  1. Choose Build, and set the filter, the sort keys and the layout; or choose Explain and paste statements.
  2. Try them on the sample records on the page.
  3. Copy the control statements into your JCL.

What it cannot do

  • JOINKEYS, ICETOOL and PARSE are not explained; the page says so.
  • The sample run is a simulation of the common statements, not DFSORT itself.

This tool opens with an example already filled in.

1 · Filter records

2 · Sort keys

3 · Reshape output

● RUN ON SAMPLE RECORDS · in your browserCH and ZD fields
Edit the sample aboveexample data · not your file

Control statements

Make a sort job ▸

What it does

Covers: SORT, MERGE, OPTION COPY, INCLUDE, OMIT, INREC and OUTREC BUILD, SUM FIELDS=NONE and the basic OUTFIL parameters. JOINKEYS, ICETOOL operators and PARSE are unsupported: the page says so and does not guess.

ACCURACY · SIMULATION · CONFIRM ON Z/OS

Statements follow the DFSORT reference. The sample run simulates the common statements on your own sample records; it is not DFSORT itself, so check the real output. OUTFIL is explained (its main parameters, listed in the docs); JOINKEYS, JOIN, REFORMAT, ICETOOL and PARSE are not explained and the page says so.

What it checks

  • ConfirmedBuilds and explains SORT and MERGE FIELDS, OPTION COPY, INCLUDE and OMIT COND, INREC and OUTREC BUILD, and SUM FIELDS=NONE.
  • ConfirmedExplains OUTFIL parameters from IBM's OUTFIL page: FNAMES, FILES, INCLUDE, OMIT, SAVE, BUILD, SPLIT, SPLITBY, STARTREC, ENDREC, SAMPLE and ACCEPT.
  • Depends on your systemWhere an OUTFIL result depends on the run (for example the SORTOUT or SORTDD setting), it says so.

What it does not check

  • UnsupportedJOINKEYS, JOIN UNPAIRED and REFORMAT are not explained.
  • UnsupportedICETOOL operators (COUNT, DISPLAY, OCCUR, RANGE, SELECT, SPLICE, STATS, UNIQUE, VERIFY and others) are not explained.
  • UnsupportedPARSE, OVERLAY, FINDREP, IFTHEN, VTOF and report parameters in OUTFIL; BUILD or OUTREC items the parser does not recognise are shown as written.
  • Depends on your systemThe sample run applies the common statements to records you type; it is a simulation, not DFSORT itself, and installation defaults and exits are not modelled.

Source

Simulation, confirm on z/OS. Status labels: Confirmed Depends on your system Unsupported (a rule with an official source; depends on your catalog, security, installation defaults or compiler options; not parsed and shown instead of guessing).

Input limits and example

  • Control statements and sample records: 200,000 characters per box.
  • The sample run uses the first 40 sample lines.

EXAMPLE INPUT

 INCLUDE COND=(15,2,CH,EQ,C'NY')
 SORT FIELDS=(1,10,CH,A)
 OUTREC BUILD=(1,10,2X,15,2)

Check it yourself in one minute

  1. Open your browser's developer tools: in Chrome or Edge press F12 or right-click and choose Inspect; in Firefox press Ctrl+Shift+E for the Network Monitor; in Safari first turn on Show features for web developers under Settings, Advanced. Then open the Network tab.
  2. Keep the log across page loads (Chrome: Preserve log; Firefox: Persist Logs), then use the tool: paste your text or open a file and press the button.
  3. Look at the list. You will see only this page and its own files, loaded when the page opened. Nothing new appears when you use the tool.
  4. Still unsure? Switch Wi-Fi off and try again. The tool still works.

What the badge counts: requests the browser logged after this page finished loading, other than the site's own files. It reads the browser's own record and makes no request of its own. If your browser cannot give that record, the badge says so. The badge is a convenience; the developer tools are the proof.

The rule that enforces it

Every page carries this Content Security Policy. The browser itself refuses any request outside it; connect-src 'none' blocks fetch, XHR and WebSocket.

default-src 'none';
script-src 'self';
style-src 'self';
img-src 'self' data:;
font-src 'self';
connect-src 'none';
object-src 'none';
form-action 'none';
base-uri 'none';
manifest-src 'self';
worker-src 'self'