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
 
How to handle error conditions on date in dev panel

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

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Tue Dec 30, 2008 8:03 pm    Post subject: How to handle error conditions on date in dev panel
Reply with quote

if you user enter wrong date on the developed screen then how to validate

Code:
                   YEAR   MONTH   DATE 
 ENTER AFCDATE  : _YYYY+  _MM+    _DT+ 


I/P YYYY = 2008, MM=02 & DT=31

how to validate thru pannel and panel must throw message like below example

ex : if 2008 then message should be thrown as "month range from 01 - 29"
if 2009 then message should be thrown as "month range from 01 - 28"
Back to top
View user's profile Send private message

expat

Global Moderator


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

PostPosted: Tue Dec 30, 2008 8:10 pm    Post subject:
Reply with quote

Have you looked at the VER (verify) statements that can be used in panels ?
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Tue Dec 30, 2008 8:16 pm    Post subject: How to handle error conditions on date in dev panel
Reply with quote

Following VER statements already coded for below reasons
Code:

VER (&YYYY,NB,NUM,MSG=GFCEF000)             
VER (&YYYY,NB,RANGE,2001,2015,MSG=GFCEF001)
                                           
VER (&MM,NB,NUM,MSG=GFCEF002)               
VER (&MM,NB,RANGE,01,12,MSG=GFCEF003)       
                                           
VER (&DT,NB,NUM,MSG=GFCEF004)               
VER (&DT,NB,RANGE,01,31,MSG=GFCEF005)       


message
Code:
GFCEF000   'INVALID YEAR ' .ALARM=YES               
'GFCEF000  YEAR MUST BE NUMERIC'                   
GFCEF001   'INVALID YEAR ' .ALARM=YES               
'GFCEF001  YEAR MUST BE NUMERIC & 2001 - 2015 ONLY'

GFCEF002   'INVALID MONTH' .ALARM=YES               
'GFCEF002  MONTH MUST BE NUMERIC'                   
GFCEF003   'INVALID MONTH' .ALARM=YES               
'GFCEF003  MONTH MUST BE NUMERIC & 01 - 12 ONLY'   
 
GFCEF004   'INVALID DATE' .ALARM=YES               
'GFCEF004  DATE MUST BE NUMERIC'                   
GFCEF005   'INVALID DATE' .ALARM=YES               
'GFCEF005  DATE MUST BE NUMERIC & 01 - 31 ONLY'     


In this case 31 is valid but does not my above req
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2088
Location: Silicon Valley

PostPosted: Tue Dec 30, 2008 9:45 pm    Post subject: Reply to: How to handle error conditions on date in dev pane
Reply with quote

Use an IF statement to check if the month is 2 and if true, then use a different VER statement.
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Wed Dec 31, 2008 11:10 am    Post subject: How to handle error conditions on date in dev panel
Reply with quote

Have handled this case through rexx

thanks alot for your help
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 Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm

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