Hold Files
Qedit has two Hold files: Hold and Hold0. The first one is created using the Hold command or with HH/HJ in Visual mode.
Lines are written to the Hold0 file every time you move or copy with the Add command (MM, CC, and DD in Visual mode) or justify (JJ) or replicate (RR) lines in full-screen mode.
By default, these Hold files are created in /var/tmp
(/usr/tmp is the default on older versions of HP-UX) or the path name specified in the TMPDIR
environment variable. The Hold files are called qholdxxxxxxxxx
(explicit Hold) and qholdxxxxxxxxx.0
(implicit hold file) where "xxxxxxxxx" is a random string generated by the HP-UX tempnam
routine.
If you want to have these files in a different location, you can set the TMPDIR
environment variable to the new path name.
TMPDIR=/home/user1/tmp
export TMPDIR
Keep in mind that Qedit works with absolute filenames and these names can not have more than 240 characters. So that you don't have to remember these names, you can refer to these files as Hold or Hold0 in Qedit commands. For example,
/hold 50/60
{save lines in the Hold file}
/open report.cob
{switch files}
/aq last=hold
{lines copied from the Hold file}
The value of TMPDIR can be a relative or absolute path. Internally, Qedit always uses the absolute path. It converts the relative path if needed.
You cannot use Qedit to look at files in your current directory called hold or hold0, unless you qualify them with the directory or a relative path name, as in ./hold.
The Hold files are removed when you exit Qedit.
![Home](rnd2hm_s.gif)
![Previous](rnd2pr_s.gif)
![Next](rnd2nx_s.gif)