Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Connectivity
  New Posts New Posts RSS Feed - CHAR(0) appearing randomly in data
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedCHAR(0) appearing randomly in data

 Post Reply Post Reply
Author
Message
NickTheHorse View Drop Down
Newbie
Newbie


Joined: October 30 2013
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote NickTheHorse Quote  Post ReplyReply Direct Link To This Post Topic: CHAR(0) appearing randomly in data
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.