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
 
Length function in ISPF Panel

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

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Thu Jun 24, 2010 1:14 pm    Post subject: Length function in ISPF Panel
Reply with quote

Hi,
This is a panel of mine.
Code:
)ATTR                                                     
 _ TYPE(NEF) CAPS(ON)                                     
 £ TYPE(TEXT)   COLOR(BLUE)   INTENS(HIGH)               
 ¢ TYPE(TEXT)   COLOR(YELLOW) INTENS(HIGH)               
 + TYPE(TEXT)   COLOR(GREEN)  INTENS(HIGH)               
 # TYPE(TEXT)   COLOR(YELLOW) INTENS(HIGH) HILITE(REVERSE)
 @ TYPE(OUTPUT) COLOR(YELLOW) INTENS(HIGH) HILITE(USCORE)
)body window(47,22)                                       
£                                                               
+                                            +           
+  Programmer Name: _Pnam    +                           
+  EMP     Number : _Snam +                               
+                                             
¢               Press Enter to Proceed       
£                                            £
)init                                         
)proc                                                                           
)end

I want to validate the length of the input fields from the Panel and throw a message.
I figured &length function can be used. Could you guide how to use it?
Code:
&length(_Pnam)
?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8620
Location: Back in jolly old England

PostPosted: Thu Jun 24, 2010 1:22 pm    Post subject:
Reply with quote

Once again, the manuals explain all.
However in what you appear to want - look at the VER statement.
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 records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 10 Tue Sep 05, 2017 4:24 pm

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