Mainframe Path Start learning free
Beginner8 min readLesson 2 of 4

Allocating, copying and moving: options 3.2 and 3.3

Option 3.2 creates (allocates), renames, catalogs and deletes datasets. Option 3.3 copies or moves data and members between them. Get the record format and record length right when you allocate, and always read the target name twice before you press Enter.

3.2: the Data Set Utility

OptionAction
AAllocate a new dataset
RRename
DDelete (the data is gone)
C / UCatalog / uncatalog
SShort information
blankFull information: attributes, space, dates

The allocation fields that matter

Allocating a library for your JCL
  Allocate New Data Set
Command ===>
   Data Set Name  . . . : VSAHA1.TEST.JCL
   Space units  . . . . . TRKS          (BLKS, TRKS, CYLS, KB, MB...)
   Primary quantity . . . 15
   Secondary quantity . . 15
   Directory blocks . . . 0             (0 for a PDSE or sequential dataset)
   Record format  . . . . FB
   Record length  . . . . 80
   Block size . . . . . . 0             (0 = let the system choose)
   Data set name type . . LIBRARY       (LIBRARY = PDSE, PDS, or blank = sequential)
What each field decidesWhat it means
Space units / quantities
How much room to start with, and how much to add each time it fills. Too small and jobs fail with an out-of-space abend.
Record format FB
Fixed length records, blocked. The usual format for source code and JCL.
Record length 80
The width of each record. JCL and COBOL source are 80 because they descend from punched cards.
Block size 0
Lets the system pick an efficient block size. Almost always the right answer.
Data set name type
LIBRARY gives a PDSE, PDS gives a classic PDS, and blank gives a sequential dataset.

ISPF usually carries the attributes of the last dataset you looked at into the allocation panel. A quick way to allocate 'one like that one' is to display the existing dataset's information first, then allocate the new name and adjust only what differs.

3.3: Move/Copy

TRY IT YOURSELF

In 3.2, which option letter allocates a new dataset?

Show a hint

Think of the first letter of the action.

Show the solution

A (Allocate).

Examples are for learning. Run commands and jobs only on a system you are authorised to use, such as a training or test system, and never on production without approval.

Common mistakes

Allocating with the wrong record length

A library allocated with LRECL 133 cannot hold 80-byte JCL cleanly. Delete it and reallocate. You cannot change LRECL in place.

Using M when you meant C

Move deletes the source after copying. If you only want a copy, use C.

Leaving 'replace like-named members' on by habit

It overwrites same-named members in the target without asking. Switch it on only when you mean it.

What you will see at work

Key terms

Check your understanding.
Take this lesson's quiz and save your progress. Free.

Take the lesson quiz
← Setting up ISPF the way you'll use itComparing and searching: SuperC and Search-For →