CL Command Reference - RCVDST

CL Command List > RCVDST Reference

Description:

The Receive Distribution (RCVDST) command allows you to receive incoming distributions such as documents or files. The documents or files can be placed in folders or document objects or can be placed in an output file for processing.

Restriction: The requester of the command must be enrolled in the system distribution directory. If you request distribution information for another user, you must have been given permission to work on behalf of that user with the Grant User Permission (GRTUSRPMN) command. Personal distribution cannot be requested if the requester is working on behalf of another user.


Examples:

Example 1: Receiving Current User Distribution

RCVDST DISTID(¡¯SYSTEM1 USERA 0001¡¯) OUTFILE(MYLIB/MYFILE)
OUTMBR(MYMBR *ADD) OUTDTATYP(*ALL) CMDCHRID(*DEVD)

This command receives the current user distribution into output file MYFILE located in library MYLIB. The distribution is added to member MYMBR. All output file information is added to the output file MYFILE.



Example 2: Receiving Distribution Sent to a User

RCVDST DSTID(¡¯BAKER RCH38P 0019¡¯) DSTINDEXN(01)
OUTFILE(JOWLIB/DOCUMENTS) USRID(*CURRENT)

This command receives a distribution that was sent to a user. It is copied into the first member in a database file called DOCUMENTS in a library called JOWLIB.