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
 

 

Input field limiter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Input field limiter
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

Moderator Team Head


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

PostPosted: Tue Jan 13, 2009 4:28 pm    Post subject: Reply to: Input field limiter
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    Post subject: Reply to: Input field limiter
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: 2360
Location: Israel

PostPosted: Wed Jan 14, 2009 2:25 am    Post subject:
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    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 SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm


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