U@BLDTMPFILEN

U@BLDTMPFILEN builds a unique stream temporary file name and verifies that it does not already exist. The name (100 characters maximum) is returned in E@TMPFILE. This name must be created before the temporary file can be opened for output.

End users are allowed to change the default path of work files built by this routine. End users can change the path by using the Job Definition (jobdef) utility in either the header area (job level) or detail area (step level). Changing the path at the job level affects the entire job, while changing the path at the step level affects only that step.

Module DATABASE
Input No input required.
Output E@TMPFILE (always set)

Programming Example

*   Build a print file name.
  CALLP     U@BLDTMPFILEN                Build Tmp File Name
  EVAL      PWS@FILENA     = E@TMPFILE