© 2024 InterSystems Corporation, Cambridge, MA. All rights reserved.Privacy & TermsGuaranteeSection 508Contest Terms
move to archive
SPOOL existed long before IRIS and ObjectScript
It is a simple device that allows you to write to the Global ^SPOOL
For daily use you should know
Device = 2
it has an integer documentId (default=1)
it has an integer lineNumber (default =1)
you use it by
open 2:<docid>
use 2 write . . . .
close 2
Online documentation on SPOOL is complete and tells you almost all details.
This is the demo code related to the article in Developer Community SPOOL - the forgotten device
Make sure you have git and Docker desktop installed.
Clone/git pull the repo into any local directory
git clone https://github.com/rcemper/SPOOL-demo-ZPM.git
Open the terminal in this directory create teh container and run it:
docker-compose up -d
Open a session in your container
docker-compose iris iris session iris
Details for testing are described in DC article SPOOL - the forgotten device