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: 2058
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: 1232
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 Trace in CLIST PANEL cvnlynn CLIST & REXX 1 Thu Jun 22, 2017 11:06 pm
No new posts SCLM -- not installed -- panel ISRNOSLM dmitchell1105 IBM Tools 3 Fri Jun 09, 2017 10:41 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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