z/OS DFSMS Access Method Services Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Define a Page Space in another Catalog: Example 2

z/OS DFSMS Access Method Services Commands
SC23-6846-01

//DEFPGSP1 JOB    ...
//STEP1    EXEC   PGM=IDCAMS
//VOLUME   DD     VOL=SER=VSER05,UNIT=DISK,DISP=OLD
//SYSPRINT DD     SYSOUT=A
//SYSIN    DD     *
DEFINE ALIAS (NAME(SYS2) RELATE(MASTCAT.SYSTEM2))
       DEFINE PAGESPACE -
              (NAME(SYS2.PAGE2) -
              CYLINDERS(10) -
              VOLUMES(VSER05)
         ALTER SYS2.PAGE2 NEWNAME(SYS1.PAGE2) CATALOG(MASTCAT.SYSTEM2)
         ALTER SYS2.PAGE2.DATA NEWNAME(SYS1.PAGE2.DATA) -
		CATALOG(MASTCAT.SYSTEM2)
/*             
Job control language statement:
  • VOLUME DD describes the volume on which the data space is to be defined. .

The DEFINE ALIAS command defines an alias pointing to a target catalog in which the pagespace is to be defined.

The DEFINE PAGESPACE command defines a page space. These are the parameters:
  • NAME specifies the name of the page space, SYS2.PAGE2.
  • CYLINDERS specifies that the page space is to occupy 10 cylinders. The page spaces are never extended.
  • VOLUMES specifies that the page space is to reside on volume VSER05.

The pagespace is created in catalog MASTCAT.SYSTEM2. The ALTER commands rename the pagespace to a SYS1 high-level qualifier in the target catalog.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014