Appendix C: Reference of Relevant Commands
Integrating WebDocs with your own applications can streamline document check-in and searching. You can integrate over 100 WebDocs commands into your own applications. Because these are the same commands that RJS Software applications use, you retain all the benefits of WebDocs, such as keeping the same logging. This appendix gives you basic information about some of the most common WebDocs commands you can use in your programs.
There are many ways that you can integrate WebDocs with your applications. Consider how you can use your existing data and applications together with WebDocs.
For example: After a document has been added to WebDocs, you can use the DOCLINKCRT command to add a link to that document so that you can find it using different search criteria. You can derive those values from your corporate business data.
For more information and examples, go to the RJS Software support site - http://support.rjssoftware.com/ - and search for articles that contain words like integrating, API, application, and so on.
If you have questions or want to discuss specific coding situations, contact RJS Software. RJS Software also provides consulting services for both planning and coding sophisticated integration models in iSeries and PC languages, including VB, VBScript, Javascript, ASP, JSP, Java, RPG, COBOL, and more.
Commands are divided into the following categories:
Checking In and Out Documents
Command | Description | Sample Syntax |
Check in an edited document to WebDocs. Specify:
|
DOCHKI DOCID(Document ID) IFSFILE(IFS File Name) COMMENT(Comment) USERID(WebDocs User | *CURRENT) DLTIFSFILE(*NO | *YES) COMPMSGTYP(*COMP | *ESCAPE) |
|
Check in a new document to WebDocs. For example: Call an exit program that updates index keys with information from iSeries databases. Specify:
Warning: Do not use the SKIPCOPY parameter unless you have discussed it with RJS Software technical support. |
DOCCHKIN IFSFILE(IFS File Name) DOCTITLE(Title) DOCTYPE(Document Type) FOLDERLVL1(Folder Level 1) ... FOLDERLVL5(Folder Level 5) KEYWORD1(Search Key 1) ... KEYWORD10(Search Key 10 SPOOL(Spool-File Name) SPOOLUSER(User ID) SPOOLJOB(Job Name) SPOOLJOBN(Job Number) SPOOLSPLN(Spool-File Number) SPOOLUDATA(User Data) SPOOLFORM(Form Type) SPOOLUDEF(User-Defined Data) SPOOLOUTQ(Output Queue) SPOOLOLIB(Library) SPOOLPAGES(Pages) SPOOLDATE(Date) SPOOLTIME(Time) DLTIFSFILE(*YES | *NO) COMPMSGTYP(*COMP | *ESCAPE) USERID(WebDocs User | *CURRENT | *AS400USER) IFSDIR(IFS Output Directory | *FOLDERSETTING) ORIGFILSIZ(File Size | 0) PREEXITPGM(Program Name | *NONE) EXITPGM(Program Name | *NONE) CRTAUDIT(*YES | *NO) |
|
Check out a document from WebDocs to edit. Specify:
|
DOCCHKO DOCID(Document ID) USERID(WebDocs User | *CURRENT) COMPMSGTYP(*COMP | *ESCAPE) |
|
Undo a document check-out. Specify:
|
DOCCHKU DOCID(Document ID) USERID(WebDocs User | *CURRENT) COMPMSGTYP(*COMP | *ESCAPE) |
|
Update a document's search keys and information. Specify:
|
DOCINFOUPD DOCID(Document ID) DOCTITLE(Title) DOCTYPE(Document Type) KEYWORD1(Search Key 1) ... KEYWORD10(Search Key 10) SPOOL(Spool-File Name) USERDATA(User Data) USERID(User ID) FORM(Form Type) JOB(Job Name) OUTQ(Output Queue) USRDFNDTA(User-Defined Data) CRTAUDIT(*NO | *YES) BLANKUPD(*NO | *YES) PREEXITPGM(Program Name | *NONE) EXITPGM(Program Name | *NONE) |
Emailing
See also:
- Setting Up Email to set up emailing in WebDocs.
- Appendix A: Reference of Relevant Data Areas for a reference of email data areas.
Command | Description | Sample Syntax |
Send an email. Best Practice: Use this command instead of the old DOCSEND command. DOCSEND works the same way, but does not have the CC and BCC parameters. Specify:
|
DOCSEND2 TOADDR(To Address) CCADDR(CC Address) BCCADDR(BCC Address) FROMADDR(From Address | *DEFAULT) FROMNAME(From Name) SUBJECT(Subject | *NONE) MESSAGE(Email Text | *NONE) ATTACHMENT(IFS Attachment | *NONE) SMTPHOST(SMTP Host | *DEFAULT) COMPRESS(*NO | *YES) PASSWORD(Compression Password) CONTYPE(MIME Content Type) DCONFIRM(*NO | *YES) RCONFIRM(*NO | *YES) HPRIORITY(*NO | *YES) LOG(*NO | *YES) RMVTEMP(*NO | *YES) |
|
Send an email with a link to a document. Specify:
|
DOCSENDLNK DOCID(Document ID) TOADDR(To Address) FROMADDR(From Address | *DEFAULT) SUBJECT(Subject | *NONE) |
Links
See also:
- Link Search to set up links in WebDocs.
- Appendix A: Reference of Relevant Data Areas for a reference of link data areas.
Command | Description | Sample Syntax |
Create a document link. Specify:
|
DOCLINKCRT DOCID(Document ID) DOCTITLE(Title) DOCTYPE(Document Type) KEYWORD1(Search Key 1) ... KEYWORD10(Search Key 10) |
Managing Documents
See also Managing Documents.
Command | Description | Sample Syntax |
Remove all documents and IFS files. Warning: This command will permanently purge all documents and index entries from the entire system. Use with extreme caution. |
DOCCLEAR CONFIRM1(*NO | *YES) CONFIRM2(*NO | *YES) |
|
Delete or purge a document and its information. Specify:
|
DOCINFODEL DOCID(Document ID) CRTAUDIT(*NO | *YES) PERMDELETE(*NO | *YES) PERMDELET2(*NO | *YES) |
|
Verify that all document entries in the database point to an actual file on the IFS. This command generates a list of any errors it finds. |
DOCVFY |
Moving Documents
Command | Description | Sample Syntax |
DOCINFOMOV |
Move a document and its information to another WebDocs folder. Specify:
|
DOCINFOMOV DOCID(Document ID) DOCFLR1(Folder Level 1) ... DOCFLR5(Folder Level 5) CRTAUDIT(*NO | *YES) |
Select documents for moving. Specify:
|
DOCMOVSEL FOLDERLVL1(Folder Level 1) ... FOLDERLVL5(Folder Level 5) BEGINDATE(Beginning Date) ENDDATE(Ending Date) CONFIRM1(*NO | *YES) CONFIRM2(*NO | *YES) |
|
De-select any documents selected for moving. |
DOCMOVRST |
|
DOCMOVLOC |
Move the documents selected with DOCMOVSEL. Specify the IFS directory to move the documents to. |
DOCMOVLOC IFSDIR(IFS Directory | '/RJSIMAGEDOCNFS') CONFIRM1(*NO | *YES) CONFIRM2(*NO | *YES) |
Routing
See also:
- Setting Up Routing to set up routing in WebDocs.
- Appendix A: Reference of Relevant Data Areas for a reference of routing data areas.
Command | Description | Sample Syntax |
Monitor WebDocs and send users notifications when certain events occur. For example: Notify users when documents arrive in their inboxes. Start this monitor either when you IPL or use the job scheduler to submit it to the QSYSNOMAX job queue to run once every few minutes and check for new events. Specify:
|
DOCEVMON DELAY(*ONCE | *DELAY) DLYTIM(Delay Time) ENDTIME(End Time) |
|
Add a document to a route or create a list of inboxes for it. Contact RJS Software technical support before using this command. |
DOCFLOWCRT DOCID(Document ID | *MOSTRECENT) USERID(WebDocs User) FLOWTYPE(*SEQUENTIALREVIEW | *ALL REVIEW) FLOWLIMIT(*NOTIMELIMIT | *MOVETONEXT | *SENDREMINDERS) FLOWDAYS(Time limit) FLOWNOTIFY(*FINALREVIEWER | *EACHREVIEWER) FLOWPROC(Routing Definition | *NONE) FLOWUSERS(Inboxes) FLOWNOTE(Note) FLOWTITLE(Route Description) |
Running SQL Queries
Command | Description | Sample Syntax |
Run an SQL query statement. Specify:
|
DOCSQL SQLSTM(SQL Statement | *SOURCE) OUTPUT(* | *PRINT | *OUTFILE) SCRF(Query Source File) SCRMBR(Query Source Member) EDIT(*NO | *YES) OUTFILE(File To Receive Output) OUTMBR(Output Member Options) NAMING(*SYS | *SQL) SRTSEQ(*JOB | *JOBRUN | *HEX | *LANGIDSHR | *LANGIDUNQ) LANGID(*JOB | *JOBRUN | Language) |
Searching
See also:
- Setting Up Searchingto set up searching in WebDocs.
- Appendix A: Reference of Relevant Data Areas for a reference of search data areas.
Command | Description | Sample Syntax |
Search and retrieve a list of documents. Specify:
|
DOCSRCH DOCTITLE(Title) DOCTYPE(Document Type) KEYWORD1(Search Key 1) ... KEYWORD10(Search Key 10) USERID(*CURRENT | WebDocs User) MAXHITS(Maximum Documents) DISPLAY(*YES | *NO) DISPLAYPGM(*NONE | Display Program) DLTNEWSESS(*YES | *NO) |
|
Retrieve a document ID from search results. Specify:
Return values:
|
DOCSRCHID HITNUMBER(Hit Number) DOCID(Document ID) DOCTITLE(Title) RTNHITS(Number of Hits Available) HITFOUND(1 | 0) |
Sessions
See also:
- Managing Sessions.
- Appendix A: Reference of Relevant Data Areas for a reference of session data areas.
Command | Description | Sample Syntax |
Check if a WebDocs web session is still active. |
DOCSESCHK SESSION(Session ID) |
|
Clear all web sessions. |
DOCSESCLR |
|
Create a new session ID on the iSeries to use in a URL to bypass the log-in process. Specify:
|
DOCSESCRT WEBUSER(WebDocs User) WEBPASS(WebDocs Password) CLRSESSION(*NO | *YES) |
|
End the current document session. |
DOCSESEND SESSION(Session ID) |
|
Retrieve a new document session. Specify:
Return values:
|
DOCSESRTV USERTYPE(*AS400USER | *IMGUSER) WEBUSER(WebDocs User | *CURRENT) WEBPASS(WebDocs Password) CHECKSESS(*NO | *YES) RTNSESSION(Return Session) |
Viewing a Document from the iSeries
Command | Description | Sample Syntax |
From an iSeries, open a WebDocs document on a PC, using the default application associated with the document's file extension. This command requires iSeries Office Integrator. Specify:
|
DOCLAUNCH RMTSYS(Remote IP Address| *CURRENT) DOCID(Document ID) DELETEDOC(0 | 1) WAIT(0 | 1) VERSION(Version Number | *FIRST | *LAST) USR(Remote User Profile) PWD(Remote Password) |