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
 

 

Date Validation in Panel

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Date Validation in Panel
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: 1746
Location: Bloomington, IL

PostPosted: Tue Apr 17, 2012 8:23 pm    Post subject: Date Validation in ISPF Panel
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    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
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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm


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