Print Page | Close Window

CHAR(0) appearing randomly in data

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Connectivity
Forum Description: Questions about serial, modem, telnet and secure shell connections?
URL: https://forum.asent.com/forum_posts.asp?TID=2423
Printed Date: March 26 2026 at 8:51pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: CHAR(0) appearing randomly in data
Posted By: NickTheHorse
Subject: CHAR(0) appearing randomly in data
Date Posted: April 29 2014 at 8:16pm
Hi,

We have an intermittent problem where CHAR(0) is finding its way into our data, causing corruption. We think we may have found the cause.

To test this, I wrote the following program:

KEY = ''
KEY.LIST = ''
OPEN 'TEMP.FILE' TO TMP THEN
FOR X = 1 TO X + 1 UNTIL KEY = 27
    IN KEY
    KEY.LIST<-1> = KEY
    WRITE KEY.LIST ON TMP, 'KEYS'
    IF KEY = 0 THEN
      CRT "NULL ENCOUNTERED - STOP"
      STOP
    END
NEXT X
END


On holding down the enter key for a length of time, the CHAR(0) appears and the program terminates. If we look at the TEMP.FILE 'KEYS' record we see the following.

0319 13
0320 13
0321 13
0322 13
0323 13
0324 13
0325 13
0326 13
0327 13
0328 13
0329 13
0330 13
0331 13
0332 13
0333 13
0334 13
0335 13
0336 13
0337 0

This does not occur using SSH2 connectivity but occurs randomly using telnet. We need to use telnet because of our infrastructure requiring defined ports to be used.

We are running D3 on AIX. Accuterm Release 7.1b sp1(7.1.2008) Wyse60 terminal emulation. This happens on both Windows XP and Windows 7.

We have tested this on our old terminal emulator (S-TERM) and this does not happen.

Any help you can give would be appreciated.

Thanks

Nick



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net