Set Data Library using JS (SETDLJS)

The Set Data Library using JS (SETDLJS) command allows you to change the data library that is associated with a user profile. The data library associated with a user is used when the user accesses the product. A user can only access one data library at a time.

Parameters

Keyword Description Choices Notes
USER User Name, *ALL, *CURRENT, *DEFAULT Optional, Key, Positional 1
DTALIB Data library Name, *NOCHG Optional

User (USER)

Specifies the user profile whose data library is to be changed.

*CURRENT
The data library for the current user is to be changed.
*ALL
The data library is to be changed for all the users specified in the product's Users list found in the Graphical User Interface (GUI).
*DEFAULT
The default data library is to be changed. The default data library is used when a user has not been assigned a specific data library.
name
Specify the name of the user profile whose data library is to be changed.

Data library (DTALIB)

Specifies the data library to assign to the user profile.

*NOCHG
The current value for the parameter does not change.
name
Specify the data library to be assigned to the user profile. The current value for this user profile is the default.

Examples

Example 1: Set the data library for a user

SETDLJS USER(*CURRENT) DTALIB(QUSRIJSPRD)

This command sets the data library for the current user profile to QUSRIJSPRD.

Error messages

Unknown