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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Validation (DDMMYYYY) in RPGLE

Status
Not open for further replies.

SK5000

Programmer
Oct 24, 2014
1
IN
Hi

In my display file, field 'Date' with length 8 (format is DD/MM/YYYY). How can I check in RPGLE program whether value entered is correctly or not. For example, if user enter 49012014 then it should throw an error. I tried TEST(DE) *DMY SCREENDATE, but it didn't work because valid date is also throws error.

Any suggestions...Please help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top