Microsoft KB Archive/246991

From BetaArchive Wiki
Knowledge Base


Event 4097 occurs when an invalid printer type is entered in Host Print Transform (HPT)

Article ID: 246991

Article Last Modified on 8/26/2004



APPLIES TO

  • Microsoft SNA Server 4.0
  • Microsoft SNA Server 3.0 Service Pack 2
  • Microsoft SNA Server 3.0 Service Pack 3
  • Microsoft SNA Server 3.0 Service Pack 4
  • Microsoft SNA Server 4.0
  • Microsoft SNA Server 4.0 Service Pack 1
  • Microsoft SNA Server 4.0 Service Pack 2
  • Microsoft SNA Server 4.0 Service Pack 3
  • Microsoft SNA Server 4.0 Service Pack 4



This article was previously published under Q246991

SYMPTOMS

If an invalid printer type is manually entered in the Host Print Transform Printer Type User Interface, the print session stays pending, and the Application Event Log may record the following event:

Event: 4097
Source: PPV5250
Description: Receive and Wait verb has completed with primary return code Dealloc Normal

CAUSE

Host Print Transform (HPT) is a utility on the AS/400 that formats the data stream in an ASCII stream with embedded control characters to format the data to match the selected printer type. The printer type configured on the SNA Server computer is passed to the AS/400 in the ATTACH.

RESOLUTION

Although it is possible to manually enter values, and required in SNA Server 3.0, the SNA Server 4.0 interface has a drop-down list box to select the printer type. Use the drop-down lest box instead of manual entry whenever possible.

To view the HPT printer types, do the following:

  1. Type WRKDEVD "printerDevicename" (without the quotation marks) at a command prompt.
  2. Enter 2 to change the parameters.
  3. Look for Host Print Transform= *Yes/No. The next line will be the device types.
  4. Scroll down to the device types parameter and press the F4 key to select a list of devices.
  5. Choose an appropriate printer device from the list, and then configure SNA Server to match.

The change is NOT reflected back to the SNA Server Print Server.

MORE INFORMATION

There are many other reasons that this event is posted. For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

222940 SNA 5250 Print Service (PPV5250) may log event 4097 in error


224825 Event 4097 logged continuously by 5250 print session


The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Keywords: kbsnaonly KB246991