Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
In my panel a field is accepting 4 characters instead of one

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
veena_nagesh2002
Warnings : 1

Active User


Joined: 07 May 2005
Posts: 110
Location: hyderabad

PostPosted: Thu Nov 20, 2008 9:45 am    Post subject: In my panel a field is accepting 4 characters instead of one
Reply with quote

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
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Thu Nov 20, 2008 10:06 am    Post subject: Reply to: In my panel a field is accepting 4 characters inst
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Nov 20, 2008 8:37 pm    Post subject:
Reply with quote

If you want the user to only enter characters, you can test the field in the panel. ALPHAB allows A-Z and a-z
Code:
 VER (&JHND,ALPHAB)   
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1244
Location: Israel

PostPosted: Thu Nov 20, 2008 9:13 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us