EasySpooler supports archiving by treating an archive as an output device that you define like any other destination. Accordingly, all document management functions are at your disposal for any document that you archive. You need only one archive destination to archive any document to any directory or device.
To create a destination for archiving, select Model Script as the Destination Type and ARCHIVE as the Model Script when you create the destination. See Add a Destination.
By default, EasySpooler despools documents to be archived using, as the file name, the value of the variable $TITLE (the value of the -t optiona) and a suffix indicating whether the file is ASCII (.TXT), PCL (.PCL), or PostScript (.PS).
To archive a document, spool it as you would any other document, only direct it to the archive destination or to its alias. The -oarch_dir= option identifies the archive directory.
You can specify the archive directory on the command line. For example, to spool eomreport to the /d2/Feb2007 directory with the title End_of_month to an archive destination named ARCHIVE:
llp -dARCHIVE -oarch_dir=/d2/Feb2007 -tEnd_of_month eomreport
Another option is to create an alias that specifies the archive directory in the Options field in the alias definition. See Add/Change an Alias Definition.
A third option is to set the variable ARCH_DIR in the following script: $LPSDIR/adm/print_scripts/usercode/lpn, where lpn is the EasySpooler archive destination.
NOTE: If you are running EasySpooler on a Windows server the ARCH_DIR variable must be entered as all capital letters whether used in scripts or on the command line, for example -oARCH_DIR=.
If you do not set or specify the archive directory, EasySpooler searches for a LOCATION variable that starts with a slash in the printer (pctl) record. If it does not find one, it uses the default directory $LPSDIR/../../ARCHIVEDIR.
For more information, see the sections on $LPSDIR/adm/print_scripts and the ARCHIVE Model Script in the ROC EasySpooler Developer’s Guide.
_______________________________
a. For more information on the -t option, see the section on llp in Chapter 2 of the ROC EasySpooler Developer's Guide.