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: 1772
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
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Trace in CLIST PANEL cvnlynn CLIST & REXX 1 Thu Jun 22, 2017 11:06 pm
No new posts SCLM -- not installed -- panel ISRNOSLM dmitchell1105 IBM Tools 3 Fri Jun 09, 2017 10:41 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm


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