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
 

 

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: 8593
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: 2025
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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm


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