yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 103 Location: INDIA
|
|
|
|
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 |
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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. |
|