Microsoft KB Archive/164794

= SNA Server Issues with DBCS Printing to an AS/400 =

Article ID: 164794

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft SNA Server 3.0 Service Pack 4

-



This article was previously published under Q164794



This article only applies to DBCS (double byte character set) code pages. DBCS code pages include all of the following:

290 Japanese (Katakana)

930 Japanese (Extend Katakana)

931 Japanese (English-lower)

933 Korean

935 Chinese (PRC)

937 Chinese (Taiwan)

939 Japanese (Extend English)


 * 1) Carriage Return (0x0D) Not Interpreted Correctly with 5250 Printing
 * 2) Print Server Doesn't Send Form Feed (FF) When NL or LF Is on Last Line
 * 3) Last Line Doesn't Print When Using SNA Server Print Server
 * 4) SNA Server Print Server Ignores the First LF and NL
 * 5) Problem with PrintPosition (AbsoluteHorizontalMove)
 * 6) Added Support for Thick Dotted Line, SHF, SPCC, and STO
 * 7) FF Command Is Not Positioned at Line-1 Column-1 of Next Page
 * 8) Application Exception in Snaprint.exe with STO



SYMPTOMS
  Carriage Return (0x0D) Not Interpreted Correctly with 5250 Printing

SYMPTOMS

Sending the following sequence to the 5250 Print Service (J version) "AAAA"+CR+LF+"BBBB"+NL (interpreted to ASCII for clarity) Will result in:   AAAA BBBB The expected result is:   AAAA BBBB  Print Server Doesn't Send Form Feed (FF) When NL or LF Is on Last Line

SYMPTOMS

When using the SNA Server Print Server (J version) to print to an AS/400, and a new line (NL) or line feed (LF) character is on the last line of the printable area, a form feed (FF) is not generated. Therefore, any remaining printable text is not printed on the next page. Last Line Doesn't Print When Using SNA Server Print Server

SYMPTOMS

When using the SNA Server Print Server (J version) to print to an AS/400, the last line may not print. The SNA Server Print Server (J version) does not correctly flush the write buffer for an end-of-page. SNA Server Print Server Ignores the First LF and NL

SYMPTOMS

SNA Server Print Server ignores the first line feed or new line it comes across.  Problem with PrintPosition (AbsoluteHorizontalMove)

SYMPTOMS

The following is a sample datastream (converted to ASCII for ease of readability): <pre class="fixed_text">  "AAAAA"+LF+PP(AHM 3)+"BBBB"+NL The expected result is: <pre class="fixed_text">  AAAAA BBBBB The actual result is: <pre class="fixed_text">  AAAAA ("BBBB" was not printed.) </li> Added Support for Thick Dotted Line, SHF, SPCC, and STO

SUMMARY

The following features have been added to DBCS printing in the SNA Server 3.0 J version:

<ul> Support for Thick Dotted Line.</li> Support for the Set Horizontal Format (SHF) SCS command to support Max Print Position (MPP).</li> Support for the Set Presentation of Control Character (SPCC) command, to support the presentation of control characters (SI/SO).</li> Support for the Set Text Orientation (STO) command, to rotate a DBCS character.</li></ul>

These changes were made to the DBCS environment, and do not include SBCS.</li>  FF Command Is Not Positioned at Line-1 Column-1 of Next Page

SYMPTOMS

The following is a sample datastream: <pre class="fixed_text">Sent data:

"12345" (NL) "67890" (FF) "ABCDE" (NL:New Line) The following is the result: <pre class="fixed_text">  <Page 1> 12345   67890

<Page 2> ABCDE Notice the ABCDE is indented to the right; it should be left justified. </li>  Application Exception in Snaprint.exe with STO

SYMPTOMS

When printing to an AS/400 using SNA Server 3.0 Print Server and selecting a DBCS character set, a general protection fault (GPF) occurs if you send a print job with STO in its datastream.

The GPF is in the following function:

WinVPRTSetTextOrientation within SNAPrint.exe.

The following is the assembler call: <pre class="fixed_text">  cmp     byte ptr [edx],0x40          ds:00000000=?? </li></ol>

<div class="resolution_section">

RESOLUTION
To resolve these problems, obtain the hotfix mentioned below.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a problem in SNA Server version 3.0. This problem was corrected in the latest Microsoft SNA Server 3.0 U.S. Service Pack. For information on obtaining the service pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

S E R V P A C K

Keywords: kbbug kbfix kbprint prodsna KB164794

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.