Compressing data

BARR/SPOOL

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.

See also:


Sending compressed files to the Spool Window

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.

Compressing data and writing to disk

Follow the steps below to write a file to disk in a compressed format that can be read by PKZIP, GZIP, or Print Utility.

  1. Open the Configuration Utility.

  2. From the Spool Printers tab, click Add. The Printer Properties dialog box displays.

    Printer Properties Dialog Box

  3. 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 '\'.

  4. Under Physical printer, select New, and then select Write to disk from the drop-down list.

  5. 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.

  1. 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

  2. On the File Options tab under Length, select Windows format.

  1. Close the Configuration Utility.

  2. Add a file to the Spool Window. You can add a file using Print Utility or use another of the input options.

  3. 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.

  4. In the Compression Level column, enter a compression level ranging from 0 to 9 (0 turns compression off).

  5. Print the file. The file will be written to disk in a compressed format that can be read by PKZIP or GZIP.

Compressing data sent to another BARR/SPOOL

Follow the steps below to send compressed files to another BARR/SPOOL computer and then decompress the files.

To configure the sending computer

  1. Open the Configuration Utility.

  2. From the Spool Printers tab, click Add. The Printer Properties dialog box displays.

    Printer Properties Dialog Box

  3. 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.

  4. Under Physical printer, select New. From the drop-down list,  select Route to another BARR/SPOOL.

  5. 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.

  6. Select Pass the archive format to LPR port. Click OK to save your changes.

  1. Add a file to the Spool Window using Print Utility. Under File type on the Format tab, verify you have select the Barr Archive.

  2. 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.

  3. 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).

  4. Set the routing criteria to match and print the document.

To configure the receiving computer

  1. Open the BARR/PRINT TCP/IP Configuration utility.

  2. From the LPD tab, click Add | Queue. The Queue Name dialog box displays.

  3. 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.

  4. Once the <Default> command has been configured, from the LPD tab, select the queue and click Add | LPR Command.

  5. 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.

  6. Click OK. The Input Conversion Utility displays.

  7. On the Format tab, select the Barr archive file type.

  8. Select Decompress. Click OK.

  9. Click OK to close the utility.