The RtvLibl procedure returns the job's library list value
The RvLibl procedure can be used to retrieve a portion of the job's library list. The library list is returned to a single, character variable.
nLibCount RtvLibl( szLibL 2750A Options(*VARSIZE) nLibLType 10I 0 Const Options(*NOPASS) |
|
See also: GetLibl |
| Constant | Literal Value | Description |
| LLUSRLIBL | 0 | The user-portion of the job's library list is returned (this is the default). |
| LLCURLIB | 1 | The current library is returned. |
| LLSYSLLBL | 2 | The system-portion of the job's library list is returned. |
| LLPRODLIBL | 3 | The production library or libraries are returned. |
The number of library names returned on the szLibl parameter.
If the function fails or there are no library name in the list for that type of library, the return value is 0.
To receive the library list into an array, use the GETLIBL procedure.
The following example retrieves the user-portion of the job's library list and store it in the field named szLIBL. The number of library names stored in the szLIBL field is returned and assigned to the field named nCOUNT.
/INCLUDE QCPYSRC,LIBL
.....DName+++++++++++EUDSFrom+++To+++++TDc.Functions+++++++++
D szLibl S 2750A
D nCount S 10A 0
C Eval nCount = RtvLibl(szLibL)