1819997 Members
4089 Online
109608 Solutions
New Discussion юеВ

Tru64 Unix

 
munawar Hayat
Occasional Advisor

Tru64 Unix

When i run cobol internal sort command it creates a tmp file in /tmp directory which is too big and use all the available free space. Which stops all the process.
3 REPLIES 3
Armin Feller
Honored Contributor

Re: Tru64 Unix

stop cobol??? (ps -ef|grep -i cobol)
Steve Steel
Honored Contributor

Re: Tru64 Unix

Hi


11.2.4 TMPDIR Environment Variable
The TMPDIR environment variable enables you to specify a different path in which to store temporary files . This can be necessary if the run-time system needs to page data to disk when creating heaps or sorting. For details of setting the TMPDIR environment variable, see the appendix Micro Focus Environment Variables.

TMPDIR
Specifies a directory in which to store temporary files in place of the UNIX system default.

Syntax:
TMPDIR=path-name
export TMPDIRParameters:

path-name The directory used by UNIX applications for any temporary work files. Temporary work files can be created by COBOL utilities such as cob or by the run-time system when it support statements such as SORT. If you do not specify a directory, the system default directory is used.


Comments:
You might need to use this environment variable if the run-time system needs to page data to disk when creating heaps or sorting.



--------------------------------------------------------------------------------


steve steel

It is always darkest just before it becomes completely dark.
If you want truly to understand something, try to change it. (Kurt Lewin)
Pete Randall
Outstanding Contributor

Re: Tru64 Unix

Most applications allow you to set a environment variable which controls what it uses for temporary space. You should be able to cause your sorts to use something besides /tmp. Check your Cobol docs.

Pete

Pete