MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Beginning to wonder if our system is backleveled ????

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Fri Nov 28, 2014 2:58 am    Post subject: Beginning to wonder if our system is backleveled ???? Reply with quote

I'm seeing all sorts of (to me) strange behaviour in my panel handling. Here's an example
Code:

)ATTR DEFAULT(%+_)                                     
       %   TYPE(TEXT)  INTENS(HIGH)  COLOR(WHITE)     
       !   TYPE(TEXT)  COLOR(BLUE)                     
       +   TYPE(TEXT)  INTENS(LOW)   COLOR(BLUE)       
       _   TYPE(NEF) CAPS(ON) JUST(LEFT)               
)BODY WINDOW(40,4)                                     
                                                       
! Number of rows (1-10)  %===>_Z +                     
! Atomic (Y/N)           %===>_Z+                     
)INIT                                                 
.ZVARS = '(IROWS,ATOMIC)'                             
&ZSAVTTL = &ZWINTTL                                   
&ZWINTTL = 'Insert (multi-row)'                       
VGET (IROWS,ATOMIC) PROFILE                           
IF (&IROWS = '')                                       
  &IROWS = 10  /* Never been here, default is 10 */   
)REINIT                                                       
)PROC                                                         
&ZWINTTL = &ZSAVTTL                                           
&ZSEL = ''                                                   
VER(&IROWS,RANGE,1,10)       /* Between 1 & 10 only       */ 
VER(&ATOMIC,NONBLANK)        /* Verify not blank          */ 
VER(&ATOMIC,LIST,Y,N)        /* Y or N only               */ 
)END

Note the VER(&ATOMIC,NONBLANK) line. Without it, if I test the panel using 7.2 and enter a blank in the field and press enter, no error message. By including the NONBLANK line, I get the expected error message.

Surely (to my way of thinking), the VER(&ATOMIC,LIST,Y,N) says that only Y or N are allowed. Why does blank slip through ?
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Fri Nov 28, 2014 3:39 am    Post subject: My bad Reply with quote

I program panels so seldom that I didn't know about the NONBLANK option as in
Code:

 VER(&ATOMIC,NONBLANK,LIST,Y,N)

_________________
Michael
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group