CL Command Reference - FILDOC

CL Command List > FILDOC Reference

Description:

The File Document (FILDOC) command allows a user to file a document in the document library.

Restrictions:

. You can file a document on behalf of another user if you are authorized to work on behalf of the other user. You must be granted authority to work on behalf of another with the Grant User Permission (GRTUSRPMN) command.

. The user ID and address must be enrolled in the system distribution directory.

. Security for the new document is taken from the parameters in the FILDOC command and not inherited from the folder.


Examples:

Example 1: Filing a Personal Document

FILDOC TYPE(*FILE) DOCFILE(MARYLIB/MARYFILE)
SENSITIV(*PRIVATE) IDPFILE(*DOCFILE)

This command files a private document using a database file that has the document content and document profile information. The default for the distribution ID extension is 01 (DSTID(01)).



Example 2: Filing a Distribution Document

FILDOC TYPE(*DSTID) DSTID(¡¯NEWYORK SMITH 0201¡¯) DSTID(02)
DOCCLS(¡¯NEW CLASS¡¯) TODOC(DST0201) TOFLR(FLRDST)

This command files a distribution document in the document library QDOC in document DST0201 and folder FLRDST. The document class is changed in the distribution document, and the second distribution that was sent to the user is filed.