IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Input field limiter


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sourabh jain

New User


Joined: 29 Feb 2008
Posts: 27
Location: Pune

PostPosted: Tue Jan 13, 2009 4:08 pm
Reply with quote

Hi All,

I am writing an ISPF Panel, in which there is an input fileld called SINPUT.
The attributes of which are:

Code:


 $  TYPE(INPUT) INTENS(LOW) HILITE(USCORE)



This is a 40 byte field. While giving input to the ISPF screen, after 40 bytes are completed, it goes to the next input string and starts writing there. Please help how can i stop the curson from going to the next input string and freeze the cursor at the end of 40 bytes.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jan 13, 2009 4:28 pm
Reply with quote

When you started creating your panel, and copied in one of the panel models, did you get the following lines for ATTR:

Code:

)ATTR DEFAULT(%+_)
      /*  % TYPE(TEXT) INTENS(HIGH)      defaults displayed for      */
      /*  + TYPE(TEXT) INTENS(LOW)       information only            */
      /*  _ TYPE(INPUT) INTENS(HIGH) CAPS(ON) JUST(LEFT)             */


Notice in the model example how all of the input fields end with the plus sign (+):
Code:

)ATTR DEFAULT(%+_)
      /*  % TYPE(TEXT) INTENS(HIGH)      defaults displayed for      */
      /*  + TYPE(TEXT) INTENS(LOW)       information only            */
      /*  _ TYPE(INPUT) INTENS(HIGH) CAPS(ON) JUST(LEFT)             */
  $ TYPE(INPUT) INTENS(LOW) PAD(_)    /* input field padded with '_' */
  ! TYPE(INPUT) INTENS(LOW) PAD(' ')  /* input field padded with ' ' */
)BODY
%--------------------  TITLE FOR ENTRY PANEL  ----------------------------------
%COMMAND ===>_ZCMD                                                             +
%
+   THIS DIRECTION LINE TELLS THE USER HOW TO USE THE PANEL:
+
+   FIRST PHRASE  ......$V1     +          Description for phrase 1
+   SECOND PHRASE ......$V2     +          Description for phrase 2
+   THIRD PHRASE .......$V3   +            Description for phrase 3
...
+   LONG ENTRY FIELD ..!VX
                                                                               +
...


That plus (+) value indicates where the field ends.
Back to top
View user's profile Send private message
sourabh jain

New User


Joined: 29 Feb 2008
Posts: 27
Location: Pune

PostPosted: Tue Jan 13, 2009 4:55 pm
Reply with quote

Thanks a lot Kevin for the reply.
DEFAULT(%+_) was not present in the ATTR section.
Everything is working fine now.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 14, 2009 2:25 am
Reply with quote

Alternatively, you may specify SKIP(OFF).

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts force tablespace using LISTDEF input DB2 1
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
Search our Forums:

Back to Top