取目标描述
可用RTOBJD命令取某个目标的描述返回给CL过程,用变量来返回描述,也可以
用这些描述帮助你确定没有用的目标。也可以用QUSRJOBD API来返回目标描述
也是用变量返回的。
DSPOBJD
DCL &LIB TYPE(*CHAR) LEN(10)
DCL &CRTDATE TYPE(*CHAR) LEN(13)
DCL &USEDATE TYPE(*CHAR) LEN(13)
DCL &USECNT TYPE(*DEC) LEN(5 0)
DCL &RESET TYPE(*CHAR) LEN(13)
...
RTVOBJD OBJ(MYLIB/MOBJ) OBJTYPE(*FILE) RTNLIB(&LIB)
CRTDATE(&CRTDATE) USEDATE(&USEDATE)
USECOUNT(&USECNT) RESETDATE(&RESET)
The following information is returned to the program:
v The current library name (MYLIB) is placed into the CL variable name &LIB.
v The creation date of MOBJ is placed into the CL variable called &CRTDATE.
v The date that MOBJ was last used is placed into the CL variable called
&USEDATE.
v The number of days that MOBJ has been used is placed into the CL variable
called &USECNT. The start date of this count is the value placed into the CL
variable called &RESET.