3.2.25 Operands related to modifying the directory for work file output

81) pd_tmp_directory = work-file-output-directory
~<absolute path name>((1-512))
Specifies the directory to which HiRDB is to output work files. Before you start HiRDB, you must have created the specified directory and granted permission for it to all HiRDB users.
HiRDB determines the directory for work file output based on a preset priority depending on the command being used. For details about the output files for which this operand's directory specification is applicable, see the manual HiRDB Version 9 Command Reference.
You can use the pdcspool command periodically to delete unneeded work files stored in the specified directory. For details about the pdcspool command, see the manual HiRDB Version 9 Command Reference.
Condition
Be sure to create the directory specified in this operand before starting HiRDB. In addition, set the access permission for the directory to 777.
If no directory with the name specified in this operand is available when HiRDB starts (because, for example, it was deleted by mistake while HiRDB was stopped), HiRDB creates a directory with the specified name and sets the access permission to 777.
Advantages
  • The output destination for work files that HiRDB outputs can be consolidated at a single location other than the HiRDB directory.
  • Periodic deletion with the pdcspool command of work files that remain after command execution is facilitated.
These capabilities make disk management easier.
Notes
  • The root directory (/) cannot be specified in this operand.
  • Do not specify any directory under the HiRDB directory.
  • Do not specify the name of a directory that is being used by a program other than HiRDB. If you do so, files output by the other program might be deleted when the pdcspool command is executed.
    Note that if one of the following directory names is specified, files will not be deleted, even when the pdcspool command is executed (in these cases, the files must be deleted manually by the user):
    [Figure]/tmp
    [Figure] /usr/tmp
    [Figure] /var/tmp
    [Figure] /
  • If the specified path name is not valid or the user does not have permission to access the specified directory, HiRDB will not be able to access the directory. When this happens, a warning message will be issued and /tmp will be used as the default directory.
  • If there is a valid setting in the TMPDIR environment variable and this operand is not specified, the default for this operand will be the value set in TMPDIR. For the TMPDIR environment variable, set a path that is no more than 512 bytes.
  • If no value is set in the TMPDIR environment variable or the setting in TMPDIR is invalid, the default specification for this operand is /tmp.