Adding an Object Set for Multiple Members Source Physical File
The stored procedure is in the DB2® schema to remove an object set for multi-member source physical file.
ADD_SRCPF_OBJECT_SET
Authorization
This stored procedure is created with public authority *EXCLUDE and is owned by the creator of the text search collection.
The procedure will adopt the authority of the text search collection owner's profile. Authority can be granted to other users to allow them to execute the procedure.
Syntax
This procedure allows a user to add an object set of multi-member source physical file (MMPF).
Add an object set for multi-member source physical file:
>>-ADD_SRCPF_OBJECT-SET -(---SRCPF_LIB----------->
>-------- SRCPF_NAME ------)-------------------------------------><
>--+------------------+--)-------------------------------------><
'-,-- OUT_SETID -'
The schema qualifier is the name of the text search collection.
Parameter
- SRCPF_LIB
- This parameter means an absolute library which contains the source physical files that will be indexed.
- SRCPF_NAME
- This parameter means an absolute source physical file which can have one or more members, all the members in the source physical file will be indexed. The file name should be absolute and should not contain any regular expressions.
- OUT_SETID
- Output Integer value that returns the set id for the object set that was added. This value can be used to remove the object set at a later time.
Additional Restrictions
- A check will be performed when adding the object set to verify that a duplicate set does not already exist in the text search collection.
- While adding a source physical file object set to a text search collection, OmniFind verifies that the source physical file exists. If the source physical file does not exist, an error message is returned and the object set is not added.
- If the file specified is not a source physical file, the procedure call fails with an error.
Authorities to Indexed Objects
When adding a Multiple members source physical file object set, consider the authority requirements to read the files carefully. Adopted authorities are not honored when accessing the source physical file's data. In addition, scheduled updates run under the user profile that owns the index. See the update stored procedure documentation for information on the authority requirements to indexed objects.
Examples
> CALL MYCOLLECTION.ADD_SRCPF_OBJECT_SET('ISVSQLLP','QCSRC');
> create variable setid int default 0;
> CALL MYCOLLECTION.ADD_SRCPF_OBJECT_SET('ISVSQLLP','QCSRC',setid);
> CALL MYCOLLECTION.ADD_SRCPF_OBJECT_SET('ISVSQLLP','*ALLSRCPF');
To add source physical file object set to a collection from IBM® Navigator for i, follow these steps.
- From IBM Navigator for i, expand IBM i Management > System > All Tasks >OmniFind > Collection List.
- Right click the collection and select Properties. On the Object tab, press pull-down menu, choose Add Source physical file, then press ADD.