MODIFY DEFAULT TMP Directory

Am using SCO Unix Open Server 5.

I am having trouble big running procedures as my / filesystem gets full before the report completes sorting.

How do I change the default tmp directory.

What kind or report? What tools is it using? Is it writing to /tmp or just running out of memory?