The TPX Logo Userid Field defaults to an eight character userid. The will show you how to change the field to allow more or less characters for userids.
In the Logo panel, SNUSERV is the input variable for the userid.
The length of a variable in a panel is determined by the distance between the attribute character ( _, %, *, etc.) and the end of field marker (+).
In this logo screen panel definition below, highlighted in bold, you can see that SNUSERV allows an 8 character userid, counting the first 'S' to the space before the '+'. The underscore is not counted. That is the attribute character in the position immediately preceding the variable.
)ATTR _ TYPE(INPUT) MDT(ON) COLOR(WHITE) * TYPE(INPUT) INTENSE(NON) MDT(ON) % TYPE(OUTPUT) INTENSE(LOW) SKIP(ON) COLOR(YELLOW) < TYPE(OUTPUT) INTENSE(HI) SKIP(ON) COLOR(RED) ? TYPE(OUTPUT) INTENSE(HI) SKIP(ON) COLOR(TURQ) | TYPE(TEXT) SKIP(ON) INTENSE(HI) COLOR(green) ! TYPE(TEXT) SKIP(ON) INTENSE(HI) COLOR(red) + TYPE(TEXT) SKIP(ON) COLOR(yellow) ; TYPE(TEXT) SKIP(ON) INTENSE(low) / TYPE(TEXT) SKIP(ON) COLOR(BLUE) INTENSE(LOW) > TYPE(TEXT) SKIP(ON) COLOR(turq) INTENSE(LOW) )BODY TYPE=BREAKIN ALARM=YES !@@@@@@@@@@@;!@@@@@@@@@;!@@@@@!@@@@; !@@;!@@@;!@@; !@@@; !@@; !@@@;!@@; /ccccc|aaaaaa !@; !@@@;!@; !@@@; !@@@; !@@@ @@; /cc/ /cc |aa !@@@; !@@@; !@@@; !@@@@@; /cc/ |aa !@@@; !@@@; !@@@; !@@@@; /cc/ |aaaaaaa !@@@; !@@@@@@@@; !@@@@; /cc/ |aa |aa !@@@; !@@@; !@@@@@; /cc/ |aa |aaa !@@@; !@@@; !@@!@@@;>REL%ZPTFLVL ; /ccccc|aaaa|aa>TM !@@@; !@@@; !@@;!@@@; !@@@; !@@@; !@@; !@@@; !@@@@@; !@@@@@; !@@@@;!@@@@@; / Copyright (C) 2010 CA. All rights reserved. ; +Userid: _SNUSERV + (or LOGOFF) %ZTIME ; +Password: *SNPSWDV + %ZDATE ; +New Password: *SNNPSWDV+ %ZTERMID ; +Account: _SNACCTV + %ZMODEL ; +Transfer: _SNA + %Z ; <ZINCOMP1 <ZINCOMP2 ?ZNEWS1 ?ZNEWS2 ! ---- CA TPX Session Management ---- /PF1=Help PF3=Logoff; )INIT .ZVARS= ZSYSID .HELP= HEN0003 )END
TO ALLOW A LONGER USERID:
If larger userids need to be accommodated then the '+' can be moved to the right to indicate the desired length.
For example, to allow a 10 character userid change
from _SNUSERV + to _SNUSERV + 12345678 1234567890 )ATTR _ TYPE(INPUT) MDT(ON) COLOR(WHITE) * TYPE(INPUT) INTENSE(NON) MDT(ON) % TYPE(OUTPUT) INTENSE(LOW) SKIP(ON) COLOR(YELLOW) < TYPE(OUTPUT) INTENSE(HI) SKIP(ON) COLOR(RED) ? TYPE(OUTPUT) INTENSE(HI) SKIP(ON) COLOR(TURQ) | TYPE(TEXT) SKIP(ON) INTENSE(HI) COLOR(green) ! TYPE(TEXT) SKIP(ON) INTENSE(HI) COLOR(red) + TYPE(TEXT) SKIP(ON) COLOR(yellow) ; TYPE(TEXT) SKIP(ON) INTENSE(low) / TYPE(TEXT) SKIP(ON) COLOR(BLUE) INTENSE(LOW) > TYPE(TEXT) SKIP(ON) COLOR(turq) INTENSE(LOW) )BODY TYPE=BREAKIN ALARM=YES !@@@@@@@@@@@;!@@@@@@@@@;!@@@@@!@@@@; !@@;!@@@;!@@; !@@@; !@@; !@@@;!@@; /ccccc|aaaaaa !@; !@@@;!@; !@@@; !@@@; !@@@ @@; /cc/ /cc |aa !@@@; !@@@; !@@@; !@@@@@; /cc/ |aa !@@@; !@@@; !@@@; !@@@@; /cc/ |aaaaaaa !@@@; !@@@@@@@@; !@@@@; /cc/ |aa |aa !@@@; !@@@; !@@@@@; /cc/ |aa |aaa !@@@; !@@@; !@@!@@@;>REL%ZPTFLVL ; /ccccc|aaaa|aa>TM !@@@; !@@@; !@@;!@@@; !@@@; !@@@; !@@; !@@@; !@@@@@; !@@@@@; !@@@@;!@@@@@; / Copyright (C) 2010 CA. All rights reserved. ; +Userid: _SNUSERV + (or LOGOFF) %ZTIME ; +Password: *SNPSWDV + %ZDATE ; +New Password: *SNNPSWDV+ %ZTERMID ; +Account: _SNACCTV + %ZMODEL ; +Transfer: _SNA + %Z ; <ZINCOMP1 <ZINCOMP2 ?ZNEWS1 ?ZNEWS2 ! ---- CA TPX Session Management ---- /PF1=Help PF3=Logoff; )INIT .ZVARS= ZSYSID .HELP= HEN0003 )END
TO ALLOW A SHORTER USERID:
If smaller userids need to be enforced then the '+' can be moved to the left to indicate the desired length.
If the length of the variable name itself is longer than the desired field length then you must use ZVARS and a variable placeholder name of Z. The . ZVARS statement contains the variable names that will be substituted for the Z variables in the panel in the order that they appear. Note that in the original version of the logo panel, there is only one Z variable and the .ZVARS= statement specifies the variable name it represents, ZSYSID.
For example, to allow a 6 character userid you would need to use ZVARS and change
from _SNUSERV + to _Z + 12345678 123456
You can see in the next panel that a Z has replaced SNUSERV and the '+' is five spaces out allowing for a 6 character field. In addition, SNUSERV has now been added to the ZVARS fstatement.
)ATTR _ TYPE(INPUT) MDT(ON) COLOR(WHITE) * TYPE(INPUT) INTENSE(NON) MDT(ON) % TYPE(OUTPUT) INTENSE(LOW) SKIP(ON) COLOR(YELLOW) < TYPE(OUTPUT) INTENSE(HI) SKIP(ON) COLOR(RED) ? TYPE(OUTPUT) INTENSE(HI) SKIP(ON) COLOR(TURQ) | TYPE(TEXT) SKIP(ON) INTENSE(HI) COLOR(green) ! TYPE(TEXT) SKIP(ON) INTENSE(HI) COLOR(red) + TYPE(TEXT) SKIP(ON) COLOR(yellow) ; TYPE(TEXT) SKIP(ON) INTENSE(low) / TYPE(TEXT) SKIP(ON) COLOR(BLUE) INTENSE(LOW) > TYPE(TEXT) SKIP(ON) COLOR(turq) INTENSE(LOW) )BODY TYPE=BREAKIN ALARM=YES !@@@@@@@@@@@;!@@@@@@@@@;!@@@@@!@@@@; !@@;!@@@;!@@; !@@@; !@@; !@@@;!@@; /ccccc|aaaaaa !@; !@@@;!@; !@@@; !@@@; !@@@ @@; /cc/ /cc |aa !@@@; !@@@; !@@@; !@@@@@; /cc/ |aa !@@@; !@@@; !@@@; !@@@@; /cc/ |aaaaaaa !@@@; !@@@@@@@@; !@@@@; /cc/ |aa |aa !@@@; !@@@; !@@@@@; /cc/ |aa |aaa !@@@; !@@@; !@@!@@@;>REL%ZPTFLVL ; /ccccc|aaaa|aa>TM !@@@; !@@@; !@@;!@@@; !@@@; !@@@; !@@; !@@@; !@@@@@; !@@@@@; !@@@@;!@@@@@; / Copyright (C) 2010 CA. All rights reserved. ; +Userid: _Z + (or LOGOFF) %ZTIME ; +Password: *SNPSWDV + %ZDATE ; +New Password: *SNNPSWDV+ %ZTERMID ; +Account: _SNACCTV + %ZMODEL ; +Transfer: _SNA + %Z ; <ZINCOMP1 <ZINCOMP2 ?ZNEWS1 ?ZNEWS2 ! ---- CA TPX Session Management ---- /PF1=Help PF3=Logoff; )INIT .ZVARS= (SNUSERV ZSYSID) .HELP= HEN0003 )END
NOTE: After panel changes are complete, use TPXOPER to RELOAD the panel.