Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 2025
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: 1224
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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us