Where allowed to run: Compiled CL program or interpreted REXX (*BPGM *IPGM *BREXX *IREXX) Threadsafe: Yes |
Parameters Examples Error messages |
The Retrieve Object Description (RTVOBJD) command retrieves the description of a specific object to a CL program or REXX procedure.
For parameters that are returned into CL variables by this command, the parameter descriptive title/prompt text lists the minimum length for the CL variable. For character variables, a single number is shown. For decimal variables, two numbers are shown. The first number indicates the minimum variable length and the second number indicates the minimum number of decimal positions.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Qualified object name | Required, Positional 1 |
Qualifier 1: Object | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OBJTYPE | Object type | *ALRTBL, *AUTL, *BNDDIR, *CFGL, *CHTFMT, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DEVD, *DOC, *DTAARA, *DTADCT, *DTAQ, *EDTD, *EXITRG, *FCT, *FILE, *FLR, *FNTRSC, *FNTTBL, *FORMDF, *FTR, *GSS, *IGCDCT, *IGCSRT, *IGCTBL, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JOBSCD, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *MEDDFN, *MENU, *MGTCOL, *MODD, *MODULE, *MSGF, *MSGQ, *M36, *M36CFG, *NODGRP, *NODL, *NTBD, *NWID, *NWSCFG, *NWSD, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *SBSD, *SCHIDX, *SPADCT, *SQLPKG, *SQLUDT, *SRVPGM, *SSND, *SVRSTG, *S36, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST | Required, Positional 2 |
ASPDEV | ASP device | Single values: *, *ALLAVL, *CURASPGRP, *SYSBAS Other values: Element list |
Optional |
Element 1: Device | Name | ||
Element 2: Search type | *ASP, *ASPGRP | ||
RTNLIB | CL var for RTNLIB (10) | Character value | Optional |
OBJATR | CL var for OBJATR (10) | Character value | Optional |
USRDFNATR | CL var for USRDFNATR (10) | Character value | Optional |
TEXT | CL var for TEXT (50) | Character value | Optional |
OWNER | CL var for OWNER (10) | Character value | Optional |
PGP | CL var for PGP (10) | Character value | Optional |
ASP | CL var for ASP (2 0) | Decimal number | Optional |
LIBASP | CL var for LIBASP (5 0) | Decimal number | Optional |
OBJASPDEV | CL var for OBJASPDEV (10) | Character value | Optional |
OBJASPGRP | CL var for OBJASPGRP (10) | Character value | Optional |
LIBASPDEV | CL var for LIBASPDEV (10) | Character value | Optional |
LIBASPGRP | CL var for LIBASPGRP (10) | Character value | Optional |
OVFASP | CL var for OVFASP (1) | Character value | Optional |
CRTDATE | CL var for CRTDATE (13) | Character value | Optional |
CHGDATE | CL var for CHGDATE (13) | Character value | Optional |
SAVDATE | CL var for SAVDATE (13) | Character value | Optional |
SAVACTDATE | CL var for SAVACTDATE (13) | Character value | Optional |
RSTDATE | CL var for RSTDATE (13) | Character value | Optional |
CRTUSER | CL var for CRTUSER (10) | Character value | Optional |
CRTSYSTEM | CL var for CRTSYSTEM (8) | Character value | Optional |
OBJDMN | CL var for OBJDMN (2) | Character value | Optional |
USEUPD | CL var for USEUPD (1) | Character value | Optional |
USEDATE | CL var for USEDATE (7) | Character value | Optional |
USECOUNT | CL var for USECOUNT (5 0) | Decimal number | Optional |
RESETDATE | CL var for RESETDATE (7) | Character value | Optional |
STG | CL var for STG (10) | Character value | Optional |
CPR | CL var for CPR (1) | Character value | Optional |
SIZE | CL var for SIZE (15 0) | Decimal number | Optional |
SPCSIZE | CL var for SPCSIZE (15 0) | Decimal number | Optional |
SPCALIGN | CL var for SPCALIGN (1) | Character value | Optional |
SAVSIZE | CL var for SAVSIZE (15 0) | Decimal number | Optional |
SAVCMD | CL var for SAVCMD (10) | Character value | Optional |
SAVSEQNBR | CL var for SAVSEQNBR (4 0) | Decimal number | Optional |
SAVLRGSEQ | CL var for SAVLRGSEQ (10 0) | Decimal number | Optional |
SAVVOL | CL var for SAVVOL (71) | Character value | Optional |
SAVDEV | CL var for SAVDEV (10) | Character value | Optional |
SAVF | CL var for SAVF (10) | Character value | Optional |
SAVFLIB | CL var for SAVFLIB (10) | Character value | Optional |
SAVLABEL | CL var for SAVLABEL (17) | Character value | Optional |
SRCF | CL var for SRCF (10) | Character value | Optional |
SRCFLIB | CL var for SRCFLIB (10) | Character value | Optional |
SRCMBR | CL var for SRCMBR (10) | Character value | Optional |
SRCDATE | CL var for SRCDATE (13) | Character value | Optional |
SYSLVL | CL var for SYSLVL (9) | Character value | Optional |
COMPILER | CL var for COMPILER (16) | Character value | Optional |
OBJLVL | CL var for OBJLVL (8) | Character value | Optional |
ALWAPICHG | CL var for ALWAPICHG (1) | Character value | Optional |
APICHG | CL var for APICHG (1) | Character value | Optional |
USRCHG | CL var for USRCHG (1) | Character value | Optional |
LICPGM | CL var for LICPGM (16) | Character value | Optional |
PTF | CL var for PTF (10) | Character value | Optional |
APAR | CL var for APAR (10) | Character value | Optional |
OBJAUD | CL var for OBJAUD (10) | Character value | Optional |
OBJSIG | CL var for OBJSIG (1) | Character value | Optional |
SYSSIG | CL var for SYSSIG (1) | Character value | Optional |
MLTSIG | CL var for MLTSIG (1) | Character value | Optional |
JRNSTS | CL var for JRNSTS (1) | Character value | Optional |
JRN | CL var for JRN (10) | Character value | Optional |
JRNLIB | CL var for JRNLIB (10) | Character value | Optional |
JRNIMG | CL var for JRNIMG (1) | Character value | Optional |
JRNOMTE | CL var for JRNOMTE (1) | Character value | Optional |
JRNSTRDATE | CL var for JRNSTRDATE (13) | Character value | Optional |
STRJRNRCV | CL var for STRJRNRCV (10) | Character value | Optional |
JRNRCVLIB | CL var for JRNRCVLIB (10) | Character value | Optional |
RCVLIBASP | CL var for RCVLIBASP (10) | Character value | Optional |
RCVLIBGRP | CL var for RCVLIBGRP (10) | Character value | Optional |
Top |
Specifies the object for which you want to retrieve information.
This is a required parameter.
Qualifier 1: Object
Qualifier 2: Library
Top |
Specifies the type of the object for which you want to retrieve the information.
This is a required parameter.
Top |
Specifies the auxiliary storage pool (ASP) device name where storage is allocated for the library containing the object. If the library resides in an ASP that is not part of the thread's library name space, this parameter must be specified to ensure the correct library is searched. If this parameter is used when the library qualifier specified for the Object (OBJ) parameter is *CURLIB or *LIBL, ASPDEV(*) is the only valid value. This parameter can be specified as a single value or a list of one or two elements.
Single values
Element 1: Device
Specify the name of the primary or secondary ASP device to be searched. The primary or secondary ASP must have been activated (by varying on the ASP device) and have a status of 'Available'. The system ASP (ASP 1) and defined basic user ASPs (ASPs 2-32) will not be searched.
Note: To specify a specific auxiliary storage pool (ASP) device name when the search type specified for element 2 is *ASP, you must have execute (*EXECUTE) authority for the specific ASP device.
To specify a specific auxiliary storage pool (ASP) device name when the search type specified for element 2 is *ASPGRP, you must have execute (*EXECUTE) authority for each ASP device in the ASP group.
Element 2: Search type
Specifies whether the single ASP device or the entire ASP group named in element 1 is to be searched.
Top |
Specifies a 10-character variable used to return the name of the library that contains the object. If *LIBL or *CURLIB is specified for the library (qualifier 2) of the Object (OBJ) parameter, the value returned is the name of the library where the object was found. If a library name is specified, that name is returned by this parameter.
Top |
Specifies a 10-character variable used to return an extended attribute of the object such as a program or file type. For example, the variable may be returned with PROD or CLP. No * will precede the value.
Top |
Specifies 10-character variable used to return the user-defined attribute of the object. Blanks are returned if the retrieved object does not have a user-defined attribute.
Top |
Specifies a 50-character CL variable used to return the text description of the object.
Top |
Specifies a 10-character variable used to return the name of the owner of the object.
Top |
Specifies a 10-character variable used to return the name of the user who is the primary group for the object. If there is no primary group for the object, this field contains a value of *NONE.
Top |
Specifies a decimal (2 0) variable used to return the number of the auxiliary storage pool (ASP) number for the object. This variable will contain an ASP number up to 32. If an ASP number is larger than 32, -1 is returned in this variable. The OBJASPDEV parameter should be used to return the ASP device name when the ASP number is larger than 32. The following values can be returned:
Top |
Specifies a decimal (5 0) variable used to return the number of the auxiliary storage pool (ASP) where storage is allocated for the library that contains the object. This variable will contain an ASP number up to 32. If an ASP number is larger than 32, -1 is returned in this variable. The LIBASPDEV parameter should be used to return the ASP device name when the ASP number is larger than 32. The following values can be returned:
Top |
Specifies a 10-character variable used to return the name of the auxiliary storage pool (ASP) device where storage is allocated for the object. The following special values can be returned:
Top |
Specifies a 10-character variable used to return the name of the auxiliary storage pool (ASP) group where storage is allocated for the object. The ASP group name is the name of the primary ASP within the ASP group. The value returned may be the same as the value returned for the OBJASPDEV parameter. The following special values can be returned:
Top |
Specifies a 10-character variable used to return the name of the auxiliary storage pool (ASP) device where storage is allocated for the library that contains the object. The following special values can be returned:
Top |
Specifies a 10-character variable used to return the name of the primary auxiliary storage pool (ASP) group where storage is allocated for the library that contains the object. The ASP group name is the name of the primary ASP within the ASP group. The value returned may be the same as the value returned for the LIBASPDEV parameter. The following special values can be returned:
Top |
Specifies a 1-character variable used to return the Object Overflowed auxiliary storage pool (ASP) flag.
Top |
Specifies a 13-character variable used to return the date and time the object was created. A value is returned in the form CYYMMDDHHMMSS where C = century; '0' indicates years 19xx and '1' indicates years 20xx; YY = year, MM = month, DD = day, HH = hour, MM = minutes and SS = seconds.
Top |
Specifies a 13-character variable used to return the date and time the object was last changed. The variable is returned in the same format as the CRTDATE parameter or is returned blank if the object has not been changed.
Top |
Specifies a 13-character variable used to return the date and time the object was last saved. The variable is returned in the same format as the CRTDATE parameter or is returned blank if the object has not been saved.
Top |
Specifies a 13-character variable used to return the date and time the object was last saved during a save operation with the SAVACT parameter specified as something other than *NO. This date/time indicates when the object itself was saved; the SAVDAT parameter indicates when the save operation was started. The variable is returned in the same format as the CRTDATE parameter or is returned blank if the object has not been saved or if SAVACT(*NO) was specified for the last save operation for the object.
Top |
Specifies a 13-character variable used to return the date and time the object was last restored. The variable is returned in the same format as the CRTDATE parameter or is returned blank if the object has not been restored.
Top |
Specifies a 10-character variable used to return the name of the user that created the object.
Top |
Specifies an 8-character variable used to return the name of the system on which the object was created.
Top |
Specifies a 2-character variable used to return the object domain value for the object. The following values can be returned:
Top |
Specifies a 1-character variable used to return whether the object usage information is updated for this object type. The following values can be returned:
Top |
Specifies a 7-character variable used to return the date the object was last used. The date is returned in the form CYYMMDD or is returned blank if the object does not have a last used date.
Top |
Specifies a decimal (5 0) variable used to return the number of days the object has been used. If the object does not have a last used date, zero (0) is returned.
Top |
Specifies a 7-character variable used to return the date the days used count was last reset to zero (0). The date is returned in the form CYYMMDD or is returned blank if the days used count has not been reset.
Top |
Specifies a 10-character variable used to return the storage status of the object data. The following values can be returned:
Top |
Specifies a 1-character variable used to return the compression status of the object. The following values can be returned:
Top |
Specifies a decimal (15 0) variable used to return the size of the object in bytes. This value includes the value returned by the SPCSIZE parameter.
Top |
Specifies a decimal (15 0) variable used to return the size of the primary associated space of object in bytes. If the object has no associated space, zero (0) is returned.
Top |
Specifies a 1-character variable used to return whether the space associated with the object has been optimally aligned. Optimum alignment may allow for better performance of applications that use the object. The following values can be returned:
Top |
Specifies a decimal (15 0) variable used to return the size of the object in bytes at the time of the last save operation. If the object has not been saved, zero (0) is returned.
Top |
Specifies a 10-character variable used to return the command used to save the object. If the object has not been saved, the variable is returned blank.
Top |
Specifies a decimal (4 0) variable used to return the tape sequence number assigned when the object was saved on tape. This variable will contain a sequence number up to 9999. If the object has not been saved or was not saved to tape, zero (0) is returned. If a sequence number is actually greater than 9999, -5 is returned in this variable. The SAVLRGSEQ parameter should be used to return a sequence number which can be larger than 9999.
Top |
Specifies a decimal (10 0) variable used to return the tape sequence number (similar to the SAVSEQNBR parameter). This variable can contain a larger tape sequence number than the SAVSEQNBR parameter.
Top |
Specifies a 71-character variable used to return the tape, diskette, or optical volumes used for saving the object. The variable returns a maximum of 10 six-character volumes. The volume IDs begin in character positions 1, 8, 15, 22, 29, 36, 43, 50, 57, and 64. Each volume ID entry is separated by a single character. If the object was saved in parallel format, the separator character contains a '2' before the first volume in the second media file, a '3' before the third media file, and so on, up to a '0' before the tenth media file. Otherwise, the separator characters are blank. If more than 10 volumes are used and the object was saved in serial format, '1' is returned in the 71st character of the variable. If the object was saved in parallel format, a '2' is returned in the 71st character of the variable. Otherwise, the 71st character is blank. If the object was last saved to a save file or was never saved, the variable is returned blank.
Top |
Specifies a 10-character variable used to return the type of the device to which the object was last saved. The variable is returned with one of the following values, dependent on the device used for the last save operation:
Top |
Specifies a 10-character variable used to return the name of the save file if the object was saved to a save file. If the object was not saved to a save file, the variable is returned blank.
Top |
Specifies a 10-character variable used to return the name of the library that contains the save file if the object was saved to a save file. If the object is not saved to a save file, the variable is returned blank.
Top |
Specifies a 17-character variable used to return the file label used when the object was saved. If the object is not saved to tape, to diskette, or to an optical volume, the variable is returned blank. The value returned corresponds to the value specified for the LABEL parameter on the command used to save the object.
Top |
Specifies a 10-character variable used to return the name of the source file that was used to create the object. If no source file was used to create the object, the variable is returned blank. For ILE *PGM and *SRVPGM objects, the source file and member are blank. The source file information is stored with the *MODULE object.
Top |
Specifies a 10-character variable used to return the name of the library that contains the source file that was used to create the object. If no source file is used to create the object, the variable is returned blank.
Top |
Specifies a 10-character variable used to return the name of the member in the source file (SRCF parameter). If no source file is used to create the object, the variable is returned blank.
Top |
Specifies a 13-character variable used to return the date and time the member in the source file was last updated. The variable is returned in the same format as the CRTDATE parameter or is returned blank if the member is not updated.
Top |
Specifies a 9-character variable used to return the level of the operating system when the object was created. The variable is returned with a 3-character version level starting in character position 1, a 3-character release level starting in character position 4, and a 3-character modification level starting in character position 7. The first character of the version level is always the letter 'V'; the first character of the release level is always the letter 'R'; the first character of the modification level is always the letter 'M'.
Top |
Specifies a 16-character variable used to return the licensed program identifier, version level, release level, and modification level of the compiler. The variable is returned with the 7-character program identifier starting in character position 1, the 3-character version level in character position 8, the 3-character release level in character position 11, and the 3-character modification level in character position 14. The first character of the version level is always the letter 'V'; the first character of the release level is always the letter 'R'; the first character of the modification level is always the letter 'M'. If no compiler was used, the variable is returned blank.
Top |
Specifies a 8-character variable used to return the object control level for the created object.
Top |
Specifies a 1-character variable used to return the Allow Change by Program flag. The following values can be returned:
Top |
Specifies a 1-character variable used to return the Changed by Program flag. The following values can be returned:
Top |
Specifies a 1-character variable used to return whether the object has been modified by the user. The following values can be returned:
Top |
Specifies a 16-character variable used to return the name, version level, release level, and modification level of the licensed program if the retrieved object is part of a licensed program. The variable is returned with the 7-character name starting in character position 1, the 3-character version level in character position 8, the 3-character release level in character position 11, and the 3-character modification level in character position 14. The first character of the version level is always the letter 'V'; the first character of the release level is always the letter 'R'; the first character of the modification level is always the letter 'M'. If the retrieved object is not part of a licensed program, the variable is returned blank.
Top |
Specifies a 10-character variable used to return the Program Temporary Fix number that resulted in the creation of the retrieved object. For user-created objects, the variable is returned blank.
Top |
Specifies a 10-character variable used to return the Authorized Program Analysis Report identification (APAR ID). The variable is returned with the APAR ID that caused this object to be patched. If the object has not been changed as a result of an APAR, the variable is returned blank.
This field is not updated when IBM-supplied Program Temporary Fixes are applied. The field is changed in the following situations:
Top |
Specifies a 10-character variable used to return the auditing value of the object. A value of *NOTAVL will be returned if you do not have either all object (*ALLOBJ) or audit (*AUDIT) special authority. The values that can be returned include *NONE, *USRPRF, *CHANGE, *ALL, and *NOTAVL. See the Object auditing value (OBJAUD) parameter on the Change Object Audit (CHGOBJAUD) command for more information.
Top |
Specifies a 1-character variable used to return whether the object has a digital signature. The following values can be returned:
Top |
Specifies a 1-character variable used to return whether the object is signed by a source that is trusted by the system. The following values can be returned:
Top |
Specifies a 1-character variable used to return whether the object has more than one digital signature. The following values can be returned:
Top |
Specifies a 1-character variable used to return the current journaling status of the object. The following values can be returned:
Note: Other journal fields may contain data even though the object is not currently being journaled.
Top |
Specifies a 10-character variable used to return the name of the current or last journal. If the object has never been journaled, the variable is returned blank.
Top |
Specifies a 10-character variable used to return the name of the library that contains the journal. If the object has never been journaled, the variable is returned blank.
Top |
Specifies a 1-character a variable used to return the journal image information. The following values can be returned dependent upon what images are generated for changes to the object:
If the object has never been journaled, the variable is returned blank.
Top |
Specifies 1-character variable used to return information regarding journal entries to be omitted. The following values can be returned for the journal entries to be omitted:
If the object has never been journaled, the variable is returned blank.
Top |
Specifies a 13-character variable used to return the date and time journaling was last started. The value is returned in the same format as the CRTDATE parameter or is returned blank if the object has never been journaled.
Top |
Specifies a 10-character variable used to return the name of the oldest journal receiver needed to successfully use the Apply Journaled Changes (APYJRNCHG) or Remove Journaled Changes (RMVJRNCHG) command. This field will be blank if the object has never been journaled.
For a file object, the journal receiver will contain the entry representing the start-of-the-save operation. However, if there are members within the file that contain partial transactions, then those members may require an earlier journal receiver. Use the Display File Description (DSPFD) command to determine the partial transaction state of the members of the file.
Top |
Specifies a 10-character variable used to return the name of the library that contains the starting journal receiver. This field will be blank if the object has never been journaled.
Top |
Specifies a 10-character variable used to return the name of the auxiliary storage pool (ASP) device where storage is allocated for the library that contains the starting journal receiver. This field will be blank if the object has never been journaled. The following special values can be returned:
Top |
Specifies a 10-character variable used to return the name of the auxiliary storage pool (ASP) group where storage is allocated for the library that contains the starting journal receiver. The ASP group name is the name of the primary ASP within the ASP group. The value returned may be the same as the value returned for the RCVLIBASP parameter. This field will be blank if the object has never been journaled. The following special values can be returned:
Top |
Jane Brown enters the following command to create a library:
CRTLIB LIB(PGMLIB) TYPE(*PROD) TEXT('Library for test programs')
Later, Jane, or anyone else with the proper authority, can retrieve the attributes of the library in a CL program as shown below:
DCL &CRTDATE *CHAR 13 DCL &OWN *CHAR 10 DCL &RTNLIB *CHAR 10 DCL &OBJASPDEV *CHAR 10 : RTVOBJD OBJ(*LIBL/PGMLIB) OBJTYPE(*LIB) TEXT(&TEXT) + CRTDATE(&CRTDATE) OWNER(&OWN) + RTNLIB(&RTNLIB) OBJASPDEV(&OBJASPDEV)
The values returned in the variables of the CL program are shown below:
&TEXT = Library for test programs &CRTDATE = 0900211130000 &OWN = JBROWN &RTNLIB = QSYS &OBJASPDEV = *SYSBAS
The value returned in the variable &CRTDATE indicates that PGMLIB was created on the eleventh day of February, 1990, at 1300 hours. The value returned in the variable &OWN indicates that the library was created by user profile JBROWN. The value returned in the variable &RTNLIB indicates that PGMLIB is in library QSYS. The value returned in the variable &OBJASPDEV indicates that storage for PGMLIB is allocated from *SYSBAS which includes the system auxiliary storage pool (ASP 1) and any defined basic user ASPs (ASPs 2-32).
Top |
*ESCAPE Messages
Top |