Sample WebDocs iSeries Document Pointer Import Program - Support

Sample WebDocs iSeries Document Pointer Import Program

From Support

Jump to: navigation, search

The following web link contains a library named RJSIMGSM01. The library code can be used to import document pointers into the WebDocs iSeries Tables: DOCS00 and DOCVER00. These two tables contain the document indexes and version info for WebDocs.


  • Note: This sample assumes that your image TIF, PDF or other documents already exist on the IFS or on a NAS/SAN server that the IFS can see via NFS. You may need to install Windows Services for Unix if you SAN is accessed or front ended by a Windows Server. Most linux NFS Servers are also supported. Standard Windows Netbios via QNTC/NetServer does not work correctly because of security restictions in the OS/400 iSeries operating system. However NFS is a perfect way to access documents on a NAS/SAN device.


Image files must also have file extensions on them. Example: If your images are stored using Vanguard or Content Manager, the file names may look like this: 0A123456. This file should be named: 0A123456.TIF.

Instructions for using the program:

  • Download and install the library to you iSeries system. Programs are compiled, but the source is in file: SOURCE in RJSIMGSM01.

Click here to download RJSIMGSM01.EXE

  • Add library RJSIMAGE and RJSIMGSM01 to your library list.
  • Manually or programatically populate the DOCS00IMP table in RJSIMGSM01 with data for each document.
Field names for File DOCS00IMP:
ITITLE - Document title/description.  Required.
IFOLDER1 - Folder level 1  Required. (Folder must exist in DOCFLR00 although no validation done in import pgm)
IFOLDER2 - Folder level 2  Not Required unless you have a 2 level folder.
IFOLDER3 - Folder level 3  Not Required unless you have a 3 level folder.
IFOLDER4 - Folder level 4  Not Required unless you have a 4 level folder.
IFOLDER5 - Folder level 5  Not Required unless you have a 5 level folder.
IKEYWORD1 - Document key 1  Not Required.
IKEYWORD2 - Document key 2  Not Required.
IKEYWORD3 - Document key 3  Not Required.
IKEYWORD4 - Document key 4  Not Required.
IKEYWORD5 - Document key 5  Not Required.
IKEYWORD6 - Document key 6  Not Required.
IKEYWORD7 - Document key 7  Not Required.
IKEYWORD8 - Document key 8  Not Required.
IKEYWORD9 - Document key 9  Not Required.
IKEYWORD10 - Document key 10  Not Required.
IDOCPATH - IFS file name or IFS path to NAS/SAN Required. Ex: /RJSIMAGEDOC/TEST.PDF
IDOCFILE - IFS file name or IFS path to NAS/SAN (Same value as IDOCPATH) Required.
IDOCTYPE - IFS file type. If file name if TEST.TIF, set this field to TIF. Required.
IDOCTYPE2 - Document type. Required. (Doc type must exist in DOCTYPE00 although no validation done in import pgm)
ICHKDATE - An ISO formatted date for the document. Required.
IIFSSIZE - IFS file size.  Not required.
IUSER1 - User defined field 1. Not required.
IUSER2 - User defined field 2. Not required.
IUSER3 - User defined field 3. Not required.
IPROCESSED - After each document pointer is imported, this flag is marked in DOCS00IMP. 
No records are deleted from the table during processed. They are only marked as processed 
once imported to DOCS00/DOCVER00
  • Run the document pointer import program:
ADDLIBLE RJSIMAGE
ADDLIBLE RJSIMGSM01
CALL DOCIMP02R   
  • Use the following URL to log into the WebDocs software to see if you can access your imported documents:

http://1.1.1.1:8888/imageserver/doc100r?action=init

  • Note: Where we used 1.1.1.1, use your iSeries IP address. We are also having you use TCP/IP port 8888 instead of port 80. Your web server may be configured differently so use the IP address and Port where WebDocs is configured.
Personal tools