Change Library List

ChgLibL

The ChgLibl procedure changes the library list for the current job.

The ChgLibl procedure can be used to change the user-portion, current, or production library list.

bool ChgLibl(
  InLibl        2750A    Const Varying 
  nLibLType       10I 0  Const Options(*NOPASS)
)

See also: SetLibl

Parameters

InLibl
[input VChar(2750) const]  A list of library name to replace the current library list. Each library name must be separated by on or more blanks.
nLiblType [optional] DFT(LLUserLibL)
[input int(4) const]  An option identifier that controls which library list is changed. If unspecified, the user-portion of the jobs library list is changed. The valid options for this parameter are as follows:
Constant Literal Value Description
LLUSRLIBL 0 The user-portion of the job's library list.
LLCURLIB 1 The current library.
LLPRODLIBL 3 The production library or libraries.

Return Value

If the function succeeds, the return value is *ON (i.e., '1'); otherwise *OFF (i.e., '0') is returned. 

If the function fails, the library list is not changed.

Remarks

The new library list must be field containing the library names to replace the current library list. Each library name (except he final name) must be followed by one or more blanks. To use an array containing library names to change the library list, see the SETLIBL procedure.