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

Block size and space calculator

Best BLKSIZE for your record length and the space a file needs on 3390.Use this when you are choosing BLKSIZE for a new file or working out how many tracks or cylinders it needs.

Checked against IBM rulesON THIS DEVICE · NOTHING UPLOADEDCounting requests…
How to use this tool

What it does

Works out a good block size for your record format and length, and the space to ask for, on a 3390 disk.

How to use it

  1. Choose the record format and type the record length.
  2. Type the number of records for the space estimate.
  3. Read the best BLKSIZE and the SPACE to ask for.

What it cannot do

  • Only the 3390 device is offered.
  • It does not model compressed or extended-format data sets, or your site's storage rules.

This tool opens with an example already filled in.

Device: IBM 3390 disk (56,664 bytes per track, 15 tracks per cylinder). With SMS, coding BLKSIZE=0 or leaving it out lets the system pick the best size.

ACCURACY · CHECKED AGAINST IBM RULES

Uses the 3390 track-capacity formula for blocks without keys. Other device types and compressed or extended-format data sets are not covered.

What it checks

  • ConfirmedBest BLKSIZE for a record length on a 3390, for fixed (FB) and variable (VB) records, at half a track or better.
  • ConfirmedBlocks per track for any block length, checked against every row of IBM's 3390 track-capacity table (blocks without keys): two blocks at 27,998 bytes, one at 56,664.
  • ConfirmedSPACE in tracks and cylinders for a number of records (15 tracks per cylinder).
  • ConfirmedWarns when LRECL is above the largest ordinary block size, 32,760.

What it does not check

  • UnsupportedDevice types other than 3390 (3390 is the only device in the tool).
  • UnsupportedCompressed and extended-format data sets, whose space use differs.
  • Depends on your systemSystem-determined block size (BLKSIZE=0) and your site's storage-class and SMS rules.
  • UnsupportedPDS directory blocks and secondary-extent behaviour.

Source

Checked against IBM rules. 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

  • Numbers only: LRECL up to 32,760 (the largest ordinary block size).

EXAMPLE INPUT

RECFM FB, LRECL 80, 500,000 records

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'