Microsoft KB Archive/224825

From BetaArchive Wiki
Knowledge Base

Event 4097 logged continuously by 5250 print session

Article ID: 224825

Article Last Modified on 2/22/2007


  • Microsoft SNA Server 3.0 Service Pack 4
  • Microsoft SNA Server 4.0
  • Microsoft SNA Server 4.0 Service Pack 4
  • Microsoft Host Integration Server 2000 Standard Edition
  • Microsoft Host Integration Server 2000 Service Pack 1

This article was previously published under Q224825


Event 4097 will be logged continuously if the AS/400 Print Device is incorrect. This event is found in the Application Event Log. The source is PPV5250. The text of the event is "Receive and Wait verb has completed with primary return code Dealloc Normal."


Configuration of a 5250 print session in SNA Server requires the identification of an AS/400 Device Name. This item is part of the APPC tab in the print session properties dialog box. If the specified AS/400 Device Name exists on the AS/400 and if it is associated with a controller for a different Microsoft SNA Server, the print session will start. It will immediately shut down and move into Pending status. Next, it will start and immediately shut down again. SNA Manager will show the session changing from Active to Pending and back to Active status. This cycle repeats as long as the Print Service is active on the SNA Server.

The resolution is to configure the print session with a unique AS/400 Device Name.


The print internal trace details the status change. Examples of entries for the status change are "AStCh New Status: pending," and "AStCh Old Status: active."

Keywords: kberrmsg kbinfo kbprint KB224825