CL Command Reference - QRYDST
CL Command List > QRYDST Reference
Description:
The Query Distribution (QRYDST) command allows you to request distribution information either for yourself or on behalf of another user.
Restrictions:
1. If you request distribution information for another user, you must have been given permission to work on behalf of that user with the GRTUSRPMN command.
2. If user ID(*ALLAUT) is specified, and if you do not have permission to work on behalf of the other user, only information about your own distributions is returned.
3. The requester of the command must be enrolled in the system distribution directory. Personal distribution cannot be requested if the requester is working on behalf of another user.
4. The DLTSTS parameter does not apply to incoming distributions. When OPTION (*IN) is specified, the DLTSTS parameter is ignored.
5. Personal distribution cannot be queried if the requester is working on behalf of another user.
Examples:
QRYDST USER(*CURRENT) OPTION(*IN)
OUTFILE(*CURLIB/MYFILE) OUTMBR(*FIRST *ADD)
This command requests information about incoming distributions for the current user of this command. The output is directed to the database file MYFILE in the user¡¯s current library and is added to the first member in that file.