IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Date Validation in Panel


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Tue Apr 17, 2012 7:31 pm
Reply with quote

Hi

I have created one panel where I have to take date as a input from user and then need to validate that it should be future date.

I know in panel proc we do some validation(nb,list function) like below example. So any way to compare input date field with current date.

)Proc
ver(&Ver1, nb)
ver (&ver2,list,'1','2','3')
)end
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Apr 17, 2012 8:23 pm
Reply with quote

yogeshwar_ade wrote:
Hi

I have created one panel where I have to take date as a input from user and then need to validate that it should be future date.

I know in panel proc we do some validation(nb,list function) like below example. So any way to compare input date field with current date.

)Proc
ver(&Ver1, nb)
ver (&ver2,list,'1','2','3')
)end

Note the change to correct terminology in the title.

Recent versions of ISPF implement the *REXX statement, allowing in-line or external Rexx to be used in the )PROC section of a panel. Although I'm OOO today, and therefore can't test code, I recommend that you use the Rexx built-in DATE function both to validate the input and convert it to a "base" (i.e. the number of days since the beginning of the Christian Era), and then compare that number with the base of the current date.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top