Set Object Access (SETOBJACC)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Set Object Access (SETOBJACC) command temporarily changes the speed of access to an object by bringing the object into a main storage pool or purging it from all main storage pools. An object can be kept main storage resident by selecting a pool for the object that has available space and does not have jobs associated with it. Repeated use of the command can cause a set of objects to be resident in a main storage pool.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
OBJ Object Qualified object name Required, Positional 1
Qualifier 1: Object Name
Qualifier 2: Library Name, *LIBL, *USRLIBL, *CURLIB, *ALL, *ALLUSR
OBJTYPE Object type *FILE, *PGM Optional, Positional 2
POOL Storage pool Element list Optional, Positional 3
Element 1: Shared pool or subsystem name Name, *JOB, *BASE, *SHRPOOL1, *SHRPOOL2, *SHRPOOL3, *SHRPOOL4, *SHRPOOL5, *SHRPOOL6, *SHRPOOL7, *SHRPOOL8, *SHRPOOL9, *SHRPOOL10, *SHRPOOL11, *SHRPOOL12, *SHRPOOL13, *SHRPOOL14, *SHRPOOL15, *SHRPOOL16, *SHRPOOL17, *SHRPOOL18, *SHRPOOL19, *SHRPOOL20, *SHRPOOL21, *SHRPOOL22, *SHRPOOL23, *SHRPOOL24, *SHRPOOL25, *SHRPOOL26, *SHRPOOL27, *SHRPOOL28, *SHRPOOL29, *SHRPOOL30, *SHRPOOL31, *SHRPOOL32, *SHRPOOL33, *SHRPOOL34, *SHRPOOL35, *SHRPOOL36, *SHRPOOL37, *SHRPOOL38, *SHRPOOL39, *SHRPOOL40, *SHRPOOL41, *SHRPOOL42, *SHRPOOL43, *SHRPOOL44, *SHRPOOL45, *SHRPOOL46, *SHRPOOL47, *SHRPOOL48, *SHRPOOL49, *SHRPOOL50, *SHRPOOL51, *SHRPOOL52, *SHRPOOL53, *SHRPOOL54, *SHRPOOL55, *SHRPOOL56, *SHRPOOL57, *SHRPOOL58, *SHRPOOL59, *SHRPOOL60, *PURGE
Element 2: Pool identifier 1-10
MBR Member Name, *FIRST Optional
MBRDATA Member data *BOTH, *ACCPTH, *DATA Optional
Top

Object (OBJ)

Specifies the qualified name of the object to be brought into or deleted from main storage.

The name of the specified object can be qualified by one of the following library values:

*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
*USRLIBL
Only the libraries in the user portion of the job's library list are searched.
*ALL
All libraries on the system are searched.
*ALLUSR
All user libraries are searched. All libraries with names that do not begin with the letter Q are searched except for the following:

#CGULIB     #DSULIB     #SEULIB
#COBLIB     #RPGLIB
#DFULIB     #SDALIB

Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:

QDSNX       QRCLxxxxx   QUSRDIRDB   QUSRVI
QGPL        QSRVAGT     QUSRIJS     QUSRVxRxMx
QGPL38      QSYS2       QUSRINFSKR
QMGTC       QSYS2xxxxx  QUSRNOTES
QMGTC2      QS36F       QUSROND
QMPGDATA    QUSER38     QUSRPOSGS
QMQMDATA    QUSRADSM    QUSRPOSSA
QMQMPROC    QUSRBRM     QUSRPYMSVR
QPFRDATA    QUSRDIRCF   QUSRRDARS
QRCL        QUSRDIRCL   QUSRSYS

  1. 'xxxxx' is the number of a primary auxiliary storage pool (ASP).
  2. A different library name, in the format QUSRVxRxMx, can be created by the user for each previous release supported by IBM to contain any user commands to be compiled in a CL program for the previous release. For the QUSRVxRxMx user library, VxRxMx is the version, release, and modification level of a previous release that IBM continues to support.
library-name
Specify the name of the library to be searched.

The possible values are:

object-name
Specify the name of the object.
Top

Object type (OBJTYPE)

Specifies the type of object to be brought into or deleted from main storage.

The possible values are:

*FILE
The object is a file.
*PGM
The object is a program.
Top

Storage pool (POOL)

Specifies whether the object is brought into or purged from main storage.

The possible values are:

*JOB
The object is brought into the pool associated with the job.
*BASE
The object is brought into the base pool.
*SHRPOOLn
The object is brought into a a general-purpose shared pool. Valid values range from 1 through 10.
*PURGE
The object is purged from all pools. Element 1: Subsystem
subsystem
Specify a subsystem name. Element 2: Pool Identifier
pool-identifier
Specify a subsystem pool identifier.
*PURGE
The object is purged from all pools.
Top

Member (MBR)

Specifies the database file member to be brought into or purged from main storage.

The possible values are:

*FIRST
The first member is selected.
file-member-name
Specify the member name.
Top

Member data (MBRDATA)

Specifies the member data to be brought into or purged from main storage.

The possible values are:

*BOTH
All parts of the object are selected.
*ACCPTH
The file member's access path is selected.
*DATA
The file member's data is selected.
Top

Examples

SETOBJACC   OBJ(OBJA)  OBJTYPE(*PGM)  POOL(*JOB)

This command brings a program named OBJA to the pool associated with the job in which the command is run.

Top

Error messages

*ESCAPE Messages

CPF1858
The specified pool does not exist.
CPF1859
Use of an access path was requested but none exists.
CPF9855
File &1 in library &3 contains no members.
Top