Created On: 18 October 2010
Problem:
When trying to create a unique device description name and pass an environmental variable plus an identifier of a unique digit on the end to the AS/400 login screen it drops off the last digit when longer than 11 digits.
Example: when migrating PCs to a new domain. The hostnames may have changed also and when longer than 10 digits it is producing problems in AS400 which supports a maximum of 10 digits including a session-id.
old domain:
ABCDE1234a (9digits hostname identifier a = 10 digits)
new domain:
ABCDEF1234a (10 digits hostname a = 11 digits= too long)
So how can we influence the emulationname, in order to meet the maximum length?
Example: when migrating PCs to a new domain. The hostnames may have changed also and when longer than 10 digits it is producing problems in AS400 which supports a maximum of 10 digits including a session-id.
old domain:
ABCDE1234a (9digits hostname identifier a = 10 digits)
new domain:
ABCDEF1234a (10 digits hostname a = 11 digits= too long)
So how can we influence the emulationname, in order to meet the maximum length?
Resolution:
You would have in the html-file the entry:
this.DeviceName = "[machinename:9][autonum:1]";
which when changed to:
this.DeviceName= “[machinename:-9][autonum:1]
So place a “ - “ (minus sign) in front of the number and it will go from right to left X amount of digits.
this.DeviceName = "[machinename:9][autonum:1]";
which when changed to:
this.DeviceName= “[machinename:-9][autonum:1]
So place a “ - “ (minus sign) in front of the number and it will go from right to left X amount of digits.
Old KB# 32061
#Rumba
#SupportTips/KnowledgeDocs