# sp-open command

The sp-open command leaves the next
spooler entry generated by the current process open upon completion
of the output generating process. Any subsequent (printer) output
is attached to the end of the open entry, until an sp-close command or an sp-assign command is issued.

Warning: When an sp-open is
in effect, it is necessary to do an sp-close to
complete output of the job. This is especially noticeable when spooling
directly to UNIX or to tape.

## Example(s)

When no entry number displays,
this is attached to the open entry.

```
sp-open
block-print "this is " (p
entry # 133
block-print "a test" (p
sp-close
[1140] Your open files were closed.
```

## See also

- [listpeqs command](https://d3codex.com/tcl/listpeqs-command/)
- [Options (Spooler)](https://d3codex.com/tcl/options-spooler/)
- [sp-assign command](https://d3codex.com/tcl/sp-assign-command/)
- [sp-close command](https://d3codex.com/tcl/sp-close-command/)

---
Source: https://d3codex.com/tcl/sp-open-command/ - part of the D3Codex reference.
