Paging: adding a page data set with PAGEADD
When paging fills up, z/OS warns with IRA messages. According to the IBM documentation, the percentage counts all the paging slots of the system:
- IRA205I nn% AUXILIARY STORAGE ALLOCATED: 50% or more is in use. It is only a warning.
- IRA200E AUXILIARY STORAGE SHORTAGE: 70% or more. The system rejects the MOUNT and START commands, and the initiators stop selecting new jobs.
- IRA201E CRITICAL AUXILIARY STORAGE SHORTAGE: 85% or more. It also rejects LOGON.
- IRA202I AUXILIARY STORAGE SHORTAGE RELIEVED: the paging shortage is solved.
For IRA200E and IRA201E, what IBM tells the operator is to add space with the PAGEADD command. For that you need a page data set that is already created and cataloged.
In this article I prepare a new volume only for paging, create a local page data set on it, add it dynamically with PAGEADD and put it in IEASYSxx so that it is also used after the IPL. At the end I explain how to remove it with PAGEDEL. I do not cause a paging shortage: the messages above are the ones IBM describes.
Do not delete or uncatalog a page data set that the system is using. The system checks the catalog information from time to time and, if the data set has been deleted or has changed, it ends with wait state 02E. First you have to remove it with PAGEDEL.
Viewing the system paging
D ASM shows the page data sets that the system uses (message IEE200I):
D ASM
Each line is a page data set:
- TYPE: PLPA, COMMON or LOCAL. PLPA and COMMON are only defined at IPL; PAGEADD only adds locals.
- FULL: the percentage of that data set that is in use.
- STAT: OK if it is used normally.
- DEV: the device number.
- DATASET NAME: the name of the data set.
The last line, PAGEDEL COMMAND IS NOT ACTIVE, means that no PAGEDEL is running.
My system has three locals, SYS1.S0W1.LOCALA.PAGE, LOCALB and LOCALC, on devices 0A95, 0A96 and 0A97. With D U I see which volumes they are: B3PAGA, B3PAGB and B3PAGC, one for each local.
D U,,,0A95,3
With PAGE= you see the details of a page data set: VOLSER, SIZE (the size in slots; each slot holds one 4 KB page and a 3390 holds 180 per cylinder), USED and AVAIL:
D ASM,PAGE=SYS1.S0W1.LOCALB.PAGELOCALB has 1,799,999 slots: about 10,000 cylinders, almost a whole 3390-9 (10,017 cylinders). The paging volumes are full with their page data sets, so for the new one I prepare another volume of the same kind, B3PAGD.

Preparing the volume
This is what IBM recommends: only one page data set per volume and, if possible, no other data sets on that volume.
I create the disk in ZD&T with alcckd, the same model as the others:
alcckd /home/ibmsys1/Desktop/3.1_B_acc/B3PAGD -d3390-9
I mount it dynamically on a free unit and I also add it to the devmap, because it has to be mounted at IPL:
awsmount 0AAA -m /home/ibmsys1/Desktop/3.1_B_acc/B3PAGD![]()

I initialize it as a non-SMS volume, with the unit offline (V 0AAA,OFFLINE), as in IBM ZD&T - Initialize and Share Disks. As the volume will only hold one data set, the VTOC and its index can be small: the VTOC on cylinder 0 from track 1 (14 tracks) and the index on cylinder 1 (15 tracks). The rest of the volume stays free for the page data set.
//IBMUSERC JOB (20,FB3),'INIT NO SMS DASD',COND=(0,NE),
// CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID
//ICKDSF EXEC PGM=ICKDSF,REGION=4096K
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
INIT UNITADDRESS(0AAA) NOVERIFY VOLID(B3PAGD) PURGE -
VTOC(0,1,14) INDEX(1,0,15)
/*I reply U to ICKDSF and, when it ends, I put the unit online (V 0AAA,ONLINE).



Creating the page data set
A page data set is created with IDCAMS DEFINE PAGESPACE. It has to be on a single volume and cataloged in the master catalog: if it is in a user catalog, the system cannot use it. I follow the ADCD naming, SYS1.S0W1.LOCALD.PAGE, and then I check in option 3.4 which catalog it is in.
IBM recommends giving the size in MEGABYTES or KILOBYTES. I use CYLINDERS(10000) because I want exactly the same size as the other locals: IBM also recommends that all of them have about the same size. With FILE, the volume is allocated by the PAGEVOL DD of the job. As in the SYSLOG article, I add STORAGECLASS(SCNOSMS) so that SMS respects the volume (this is a configuration specific to this ADCD version).
//IBMUSERP JOB (TEST),'DEFINE PAGESPACE',CLASS=A,MSGCLASS=H,
// NOTIFY=&SYSUID
//* Define a new local page data set on B3PAGD
//DEFPAGE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//PAGEVOL DD UNIT=3390,VOL=SER=B3PAGD,DISP=OLD
//SYSIN DD *
DEFINE PAGESPACE ( -
NAME(SYS1.S0W1.LOCALD.PAGE) -
CYLINDERS(10000) -
VOLUME(B3PAGD) -
FILE(PAGEVOL) -
STORAGECLASS(SCNOSMS))
/*


Adding it with PAGEADD
PAGEADD PAGE=SYS1.S0W1.LOCALD.PAGEThe system responds with IEE783I PAGEADD COMMAND- SYS1.S0W1.LOCALD.PAGE PAGE DATA SET NOW AVAILABLE FOR SYSTEM USE: it is already using it.

If the data set was not in the master catalog, you would get IEE782I with NOT CATALOGED and it would not be added.
With D ASM it now shows up as LOCAL, on device 0AAA:
D ASM
And with PAGE= I check that it has the same size as LOCALB:
D ASM,PAGE=SYS1.S0W1.LOCALD.PAGE
There is a limit: the PAGTOTL parameter of IEASYSxx sets how many page data sets the system can have (40 by default) and it is fixed for the whole IPL. If you go over it, PAGEADD gives message IEE785I and does not add more.
Keeping it after the IPL
According to IBM, a page data set added with PAGEADD stays in use until an IPL with CLPA or CVIO, or until a PAGEDEL. My IEASYSxx has CLPA (I explained it in the SMF dump article), so it would be lost at the next IPL. To use it always, you have to add it to the PAGE= parameter of IEASYSxx.
First I check which IEASYSxx members were used at IPL and in which PARMLIB they are:
D IPLINFO
D PARMLIB
In this case it is in IEASYSAL.
The order of PAGE= matters: the first one is the PLPA page data set, the second one the COMMON one and, from the third on, the locals. In IEASYSAL the names use the &SYSNAME symbol, which is S0W1 on this system. I add SYS1.&SYSNAME..LOCALD.PAGE at the end of the list, before the L. With L, the system writes the list of page data sets it opens at IPL to the console, and also to the SYSLOG. Before I change the member, I make a copy.


The page data sets in PAGE= have to be cataloged in the master catalog, and their volume has to be available at IPL; if not, the system asks to mount it. That is why I added B3PAGD to the devmap.
Removing a page data set
If you need to remove a local, this is the order:
- Take it out of PAGE= in IEASYSxx, so that the next IPL does not look for it.
- Remove it with PAGEDEL DELETE: the system moves its pages to the other locals and stops using it.
- Delete it with IDCAMS.
PAGEDEL DELETE,PAGE=SYS1.S0W1.LOCALD.PAGEYou get IEE206I PAGEDEL COMMAND ACCEPTED - PAGEDEL IN PROGRESS. According to IBM, this message stays on the screen until the PAGEDEL ends and, meanwhile, D ASM shows the data set with STAT DEL and the line PAGEDEL COMMAND IS IN PROGRESS. In my case it ended at once: IEE205I with DELETED comes out and D ASM no longer shows it.

PAGEDEL cannot remove the PLPA page data set, the COMMON one or the last local, and only one can run at a time.
Then it is deleted. IDCAMS only deletes a page data set that is not in use; that is why it goes after the PAGEDEL:
//IBMUSERD JOB (TEST),'DELETE PAGESPACE',CLASS=A,MSGCLASS=H,
// NOTIFY=&SYSUID
//* Delete the page data set (only after PAGEDEL)
//DELPAGE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE SYS1.S0W1.LOCALD.PAGE PAGESPACE
/*

PAGEDEL has two other options:
- REPLACE: moves the pages to another page data set of the same size or larger, which must already be created and cataloged. It is useful, for example, to move paging to another volume: PAGEDEL REPLACE,PAGE=(old,new).
- DRAIN: makes it read-only, and its pages are freed with the normal use of the system. A PAGEADD of the same data set makes it read/write again.
IBM recommendations
- Keep the locals at 30% use or less with the normal load: above that, slot allocation is less efficient. The ASM_LOCAL_SLOT_USAGE health check warns when a local reaches 30%.
- All the locals should have about the same size, so that paging is spread across all of them.
- Several locals, each one on a different device, are better than a single big one: this way the system can page on several of them at the same time.
- Only one page data set per volume, and do not share volumes with page data sets between systems.
Summary
- D ASM: the page data sets and how full they are.
- A volume for the new page data set and DEFINE PAGESPACE, cataloged in the master catalog.
- PAGEADD PAGE=dsname: add it dynamically (IEE783I).
- PAGE= in IEASYSxx: so that it is used after an IPL with CLPA or CVIO.
- To remove it: take it out of PAGE=, PAGEDEL DELETE,PAGE=dsname and DELETE ... PAGESPACE, in that order.
References (z/OS 3.1)
- z/OS MVS System Commands (PDF): PAGEADD, PAGEDEL and DISPLAY ASM.
- z/OS MVS Initialization and Tuning Reference (PDF): PAGE and PAGTOTL parameters of IEASYSxx.
- z/OS MVS Initialization and Tuning Guide (PDF): Auxiliary storage management initialization.
- z/OS DFSMS Access Method Services Commands (PDF): DEFINE PAGESPACE and DELETE.
- Device Support Facilities (ICKDSF) User's Guide and Reference (PDF): INIT.
- z/OS MVS System Messages, Vol 9 (IGF-IWM) (PDF): IRA messages.