View previous topic :: View next topic
|
Author |
Message |
veena_nagesh2002 Warnings : 1 Active User
Joined: 07 May 2005 Posts: 110 Location: hyderabad
|
|
|
|
Code: |
+ ENTER HOLIDAY INDICATOR : _JHND+ |
ex :
Code: |
ENTER HOLIDAY INDICATOR : [color=red]NNNN[/color] |
when i am trying to enter value its accepting 4characters instead of one character,
q1) Is it possible to enter only one character after that it must be restricted
Q2) Is it possible to accept only characters instead of number while keying |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
THe field length is determined by the position of the next attribute character. If you need a one character field, use a one character variable name. Or use the ZVARS statement to map a real variable name to a Z.
You cannot restrict the typing. You can only verify the field after the user presses Enter (or PF key). |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
If you want the user to only enter characters, you can test the field in the panel. ALPHAB allows A-Z and a-z
|
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
When you have:
Code: |
)BODY
+ ENTER HOLIDAY INDICATOR : _JHND+ <= up to 4 chars |
then ISPF will reserve 4 positions for the variable JHND.
You already know that if you need more, you just have to add spaces:
Code: |
)BODY
+ ENTER HOLIDAY INDICATOR : _JHND + <= up to 8 chars |
If you want to reserve less than the name of the variable, you must use the Z variable in the following way:
Code: |
)BODY
+ ENTER HOLIDAY INDICATOR : _Z+ <= only 1 char
)INIT
.ZVARS = '(JHND)' |
If you have more than one small field, you have to make sure you have as many zvars as you have Z fields:
Code: |
)BODY
+ ENTER HOLIDAY INDICATOR : _Z+ <= only 1 char
+ ARE YOU SURE ? _Z+ <= one more char
)INIT
.ZVARS = '(JHND RUSURE)' |
[/code] |
|
Back to top |
|
|
|