Command reference / object
CHGOBJD
Change Object Description
Changes the text description of an object or resets its days used count to 0 for the specified objects. If the object is journaled, an entry recording the change is deposited in the journal. Use DSPOBJD to display journal information for the object.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- For file objects, you must have object operational (*OBJOPR) and object management (*OBJMGT) authorities for the object.
- For non-file objects, you must have object management (*OBJMGT) authority for the object.
- You must have execute (*EXECUTE) authority for the library where the object is located.
- If neither TEXT nor USECOUNT is specified, completion message CPC2105 is sent and the object is not changed.
Parameters
OBJ
Object
Specifies the object whose description is to be changed, as a qualified name with generic names allowed. If the library qualifier is not specified, *LIBL is searched. For *DEVD objects, ALCOBJ with *EXCLRD on the device description is recommended first. This is a required parameter.
*ALL- As qualifier 1, all objects in the named libraries of the specified types are changed; as qualifier 2, all libraries in the thread's name space, including QSYS, are searched.
*LIBL- All libraries in the library list for the current thread are searched until the first match is found.
*USRLIBL- If a current library entry exists, the current library and the user portion of the library list are searched; otherwise only the user portion is searched.
*CURLIB- The current library for the thread is searched; if none is specified, QGPL is searched.
*ALLUSR- All user libraries are searched, meaning libraries not beginning with Q other than certain IBM-provided ones, plus IBM Qxxx libraries that typically contain user data.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Object
Object
Suggested / special values:
*ALL
Library
Library
Suggested / special values:
*LIBL, *USRLIBL, *CURLIB, *ALL, *ALLUSR
OBJTYPE
Object type
Specifies the object type of the objects to be changed. The page lists many object type values, but does not define each one, so only *ALL is described here. This is a required parameter.
Allowed values:
*ALL, *ALRTBL, *AUTL, *BNDDIR, *CFGL, *CHTFMT, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DEVD, *DTAARA, *DTADCT, *DTAQ, *EDTD, *EXITRG, *FCT, *FILE, *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, *SQLXSR, *SRVPGM, *SSND, *SVRSTG, *S36, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST
*ALL- All types of objects that have the name and library specified for OBJ and for which you have authority are changed.
TEXT
Text 'description'
Specifies the text that briefly describes the object, up to 50 characters enclosed in apostrophes.
Suggested / special values:
*SAME, *BLANK
*SAME- The text does not change.
*BLANK- The text is set to blanks.
USECOUNT
Days used count
Specifies whether the days used count for the objects is reset. For database files, the days used count and reset date are updated for all members. Not all object types collect usage information.
Allowed values:
*NORESET, *RESET
*NORESET- The days used count is not reset.
*RESET- The days used count is reset to zero and the reset date is updated to the current system date.
Examples
CHGOBJD OBJ(LIB1/DA1) OBJTYPE(*DTAARA) TEXT('NEW TEXT FOR DA1')
Changes the text description of data area DA1 in library LIB1 to the value given by the TEXT parameter.
Generated from os/cl/catalog/CHGOBJD.json and os/cl/help/CHGOBJD.json.