Technical article 110518

The year within the date on the banner page of printouts is 1900 when it should be 2000.

OpenServer 5.0.2OpenServer 5.0.4UnixWare 7.0.0UnixWare 7.0.1

Written · Last revised

Problem

The year component of the date printed on the banner page of my printout is incorrect. The year is displayed as 1900 in the year 2000, 1901 in the year 2001, and so on.

Cause

The printer interface script you are using is printing the date using a field descriptor of 19%y for the year. This is, in effect, hardwiring the first two digits of the year to 19.

Solution

For UnixWare 7 Release 7.0.0 and 7.0.1 systems:

- Install Support Level Supplement (SLS) ptf7034a onto your system. Once SLS ptf7034a is installed, use the Printer Setup Manager to remove and re-add any printers that are exhibiting the problem.

For SCO OpenServer Release 5.0.2 and 5.0.4 systems:

- Install SLS OSS601A onto your system. Once SLS OSS601A is installed, use the Printer Manager to remove and re-add any printers that are exhibiting the problem.

For SCO UnixWare Release 2.1.2 systems:

- Install SLS ptf3391c onto your system. Once SLS ptf3391c is installed, use the Printer Setup Manager to remove and re-add any printers that are exhibiting the problem.

For SCO UNIX Operating System Version 4.2, SCO Open Desktop Release 3.0 and SCO Open Server Release 3.0 systems:

- Install SLS UOD426D onto your system. Once UOD426D is installed, use sysadmsh(ADM) to remove and re-add any printers that are exhibiting the problem.

NOTES:    If you do not want to remove and re-add the printers then you can
          manually fix the faulty printer interface scripts. To do this:

(1) Log in to the system with the problem scripts as root.

(2) Change to the printer interfaces directory. This directory is:

/etc/lp/interfaces (on UnixWare 7 and SCO UnixWare 2.1 systems)

/usr/spool/lp/admins/lp/interfaces (on SCO OpenServer 5, SCO Open Desktop 3.0, SCO Open Server 3.0 and SCO UNIX Version 4.2 systems)

(3) The interface script directory contains an interface script for each printer configured on your system. The names of the files match the name of the printers configured on the system. Make a backup copy of any file that you are going to attempt to patch.

(4) Use vi(C) or your favorite editor to edit the interface script of the printer that has the problem.

(5) Replace any occurrences of the string "19%y" with "%Y".

(6) Save the interface script back to disk and test to see that the problem has been resolved.

From the Xinuos technical article database, record 110518. Reproduced with permission. The original is at www.sco.com/ta/110518, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.