The GENERATE_DISTFILE procedure generates a data distribution file for the given table and saves it under the given fileName.
>>-GENERATE_DISTFILE--(--inTbSchema--,--inTbName--,-------------> >--fileName--)-------------------------------------------------><
The schema is SYSPROC.
In addition, the fenced user ID must be able to create files in the tmp sub-directory under the instance directory.
In a non-restrictive database, EXECUTE privilege is granted to PUBLIC when the procedure is automatically created.
CALL SYSPROC.GENERATE_DISTFILE('TEST', 'EMP',
'$HOME/sqllib/function/SAMPLE.IBMDEFAULTGROUP_swrdData.dst')"
The redistribute stored procedures and functions work only in partitioned database environments, where a distribution key has been defined for each table.