Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date validation in REXX 1

Status
Not open for further replies.

Jimanderin

Programmer
Feb 7, 2002
13
GB
Hello

Does anyone know of a date validation routine I can use in REXX. I know how to add days to a date, but I need to validate the date that a user inputs?

Any help would be much appreciated.

Thanks
Jim
 
'Validate' in what sense? Do you need to know that the user has given you 050517 as opposed to 05137, or do you merely need to know that 20050535 is not a date that can be converted?

The latter presumes you know that the date pattern is ccyymmdd (or whatever you get); convert that to any other form and have a Syntax handler ready because it will generate an "invalid call" error.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top