Data can be compressed to reduce data transmission times and bandwidth. Compressed files can be read in by Print Utility and decompressed as they enter the Spool Window. Data can also be compressed when they are written to disk or sent to another BARR/SPOOL computer. The amount of compression will vary by data type. Text compresses very well, however some binary formats like images, compress poorly or not at all.
Without setting special switches or options, the contents of compressed files will be decompressed by Print Utility and sent to the Spool Window. If an uncompressed file has a zipped extension (.gz and .z), the contents will be read by Print Utility and the data will be processed as the file type selected. When multiple files are present, each file will be treated as an independent data set. After processing, the compressed file will be handled according to the disposition settings specified when you automatically or manually add a file to the spool. Print Utility currently does not support files created using PKZIP.
Follow the steps below to write a file to disk in a compressed format that can be read by PKZIP, GZIP, or Print Utility.
Open the Configuration Utility.
From the Spool Printers tab, click Add. The Printer Properties dialog box displays.
In the Name box, enter a printer name. This name displays in the Spool Window’s printer list and is called the spool printer. The printer name cannot contain a backslash '\'.
Under Physical printer, select New, and then select Write to disk from the drop-down list.
When you click OK to close the Printer Properties dialog box, the File Port Configuration displays so you can configure the port settings. When you have finished configuring the port, click OK.
On the File Options tab under Field components, specify the field name that will be used to name the job. Add .gz to the end of the job name in the Field components box. For example, <NJHGJNAM>.gz
On the File Options tab under Length, select Windows format.
Close the Configuration Utility.
Add a file to the Spool Window. You can add a file using Print Utility or use another of the input options.
Add the Compression Level column to the Spool Window. This field, NDHBCMPL, is contained in the Data Set Header Internal Custom Section. By adding this column to the Spool Window, you can specify the compression level of the selected job.
In the Compression Level column, enter a compression level ranging from 0 to 9 (0 turns compression off).
Print the file. The file will be written to disk in a compressed format that can be read by PKZIP or GZIP.
Follow the steps below to send compressed files to another BARR/SPOOL computer and then decompress the files.
Open the Configuration Utility.
From the Spool Printers tab, click Add. The Printer Properties dialog box displays.
In the Name box, enter a printer name. The printer name cannot contain a backslash '\'. This name displays in the Spool Window’s printer list and is called the spool printer.
Under Physical printer, select New. From the drop-down list, select Route to another BARR/SPOOL.
Under Options, click Advanced to specify advanced printer options. The Advanced Printer Options dialog box displays. Review the following table to select the required and desired options.
Select Pass the archive format to LPR port. Click OK to save your changes.
Add a file to the Spool Window using Print Utility. Under File type on the Format tab, verify you have select the Barr Archive.
Add the Compression Level column to the Spool Window. This field, NDHBCMPL, is contained in the Data Set Header Internal Custom Section. By adding this column to the Spool Window, you can specify the compression level of the selected job.
In the Spool Window under the Compression Level column for your job, enter a compression level ranging from 0 to 9 (0 turns compression off).
Set the routing criteria to match and print the document.
Open the BARR/PRINT TCP/IP Configuration utility.
From the LPD tab, click Add | Queue. The Queue Name dialog box displays.
Specify the queue Name and click OK. The File Properties dialog box displays with the <Default> LPR control file command selected. By default, each queue contains a <Default> command and it must be configured before adding any additional commands. This command can be modified, but not removed.
Once the <Default> command has been configured, from the LPD tab, select the queue and click Add | LPR Command.
Select x -- Extended LPR command from the drop-down list and enter Barr in the Type box. The command you choose must match the command you selected when you configured the BARR/LPR port. You can select a different command, as long as it matches in both LPR and LPD configurations.
Click OK. The Input Conversion Utility displays.
On the Format tab, select the Barr archive file type.
Select Decompress. Click OK.
Click OK to close the utility.