900-BUILD-TMP-FILE-NAME

900-BUILD-TMP-FILE-NAME builds a unique temporary file name and verifies that it does not already exist. The name (100 characters maximum) is returned in WS-TMP-FILE . 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.

Library DATABASE
Input No input required.
Output WS-TMP-FILE (always set)

Programming Example

*       Build a temporary file name.
        PERFORM 900-BUILD-TMP-FILE-NAME.