Please enable JavaScript to view this site.
This command must be run on the IBM i and is can be used to manually move a document into the Cobwebb Docstore. Make sure that you have the CPPD library in your library list. To do this, enter the following command: -
ADDLIBLE CPPD
If the library already exists in your library list, you will receive an error message, which you may ignore.
Next enter STOREDOC and press F4=Prompt.
You will now be able to enter the path to your document and the Docstore details for where you wish to store the document..
For example:
STOREDOC FILPATH('/test/')
FILNAME('Invoice_1234')
FILEXT(PDF)
DOCSTORE('My Docstore')
DOCTYPE('Invoice')
DOCDESC('Invoice %PARM1 for Customer %PARM2')
FILTYP(PDF)
DOCKEY('INV1234' 'ABC001' '2012-06-01')
Command Parameters
FILPATH - File Path
Enter the IFS folder path where your document is currently stored. Enter just the path e.g. /test/
FILNAME - File Name
Enter the file name of the document you wish to store. Enter just the file name without its extension.
FILEXT - File Extension
Enter the file extension for your document e.g. PDF, TXT.
DOCSTORE - Docstore Name
Enter the name of the Docstore where you wish to store your file.
DOCTYPE - Document Type
Enter the Document Type for this document to be stored under in the above Docstore name.
DOCDESC - Docstore Description
This is the document description, and can use parameter replacement to make the description variable. %PARM1 refers to the first parameter on the Parameters tab etc.
E.g. Invoice %PARM1 for Customer %PARM2 on date %PARM3
The description is the field used for basic searching in Cobwebb Docstore, so it’s a good idea to try and get it to contain all the key information of the file that people will generally be searching on.
FILTYPE - File Type - Optional
Enter the file type for your document. This only needs to be supplied if your document extension is not a common one e.g. PDF, TXT, CSV etc. Either enter the type e.g. PDF, TXT, CSV, JPG, JPEG, DOC, DOCX, XLS or XLSX, or enter the number corresponding to your document type e.g.
1 |
|
2 |
TXT |
3 |
CSV |
4 |
JPG |
5 |
DOC |
6 |
XLS |
DOCKEY - First 10 Key Values - in order
Enter the first 10 key values to store in the correct order.
DOCKEYS - Last 8 Key Values - in order
Enter the last 8 key values to store in the correct order.
DOCOWN - Document Owner
This must be a valid Server User Id and will be used as the owner of the document in Docstore. If left blank this will default to the owner of the document being uploaded.
AUTLST - Authorisation List
If you wish to use Authorisation lists to determine who has access to this document then enter a valid Authorization List to be used for the document in Docstore.
PUBAUT - Public Authority
Please either leave this entry blank or enter any value from the supplied list. This will be used to define the public authority for the document in Docstore.
READO - Set as Read-only
Entering a 'Y' here will set the Read-only flag for the document in Docstore.
HALT - Halt job on error
Entering a 'Y' here will display an inquiry message in QSYSOPR message queue requiring a response when certain Docstore failures are encountered; such as moving the file into the Docstore and the folder does exist or cannot be accessed.
KEEPFL - Keep original file
Entering a 'Y' here will keep the original file. The default is to delete the file after successfully storing in Docstore. From Version 6.2.70