+ Reply to Thread
Results 1 to 5 of 5

Thread: Date API's

  1. #1
    Guest.Visitor Guest

    Default Date API's

    Can anyone direct me to some IBM Date API's for Validating Dates. We have some old CL programs that I would like to validate the date the user key's in. Thank You

  2. #2
    Guest.Visitor Guest

    Default Date API's

    John, I have used CVTDAT and monitored for a message. Something like: DCL &DATEIN *CHAR 10 DCL &DATEOUT *CHAR 10 DCL &DATEERR *LGL ... Some code to set &DATEIN CVTDAT &DATEIN &DATEOUT FROMFMT(*MDY) TOFMT(*MDY) TOSEP(*NONE) MONMSG CPF0000 EXEC(CHGVAR &DATEERR '1') ... If you are using a message subfile in your program, this will work very well as the message will be sent. David Morris

  3. #3
    Guest.Visitor Guest

    Default Date API's

    If you are looking for API's versus a CL command, you will find various date API's in the ILE CEE API's section and the Miscellaneous API's section of the System API Reference manual. Good luck!

  4. #4
    Guest.Visitor Guest

    Default Date API's

    I recommend the ILE CEE date API's. Well worth using. I wrote an application a couple of years ago to do all the date conversion and validation I need, and it hums along, year after year. No maintenance, so far, even.

  5. #5
    Guest.Visitor Guest

    Default Date API's

    On June '98 MC Magazine published such utility "Dressing Up Your Dates".

+ Reply to Thread

Similar Threads

  1. IBM API'S
    By Guest.Visitor in forum General
    Replies: 0
    Last Post: 12-02-2002, 07:17 AM
  2. API's for FTP
    By J.Wells in forum IBM i (OS/400, i5/OS)
    Replies: 4
    Last Post: 04-27-2001, 12:10 PM
  3. API's
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 12-02-1999, 10:56 AM
  4. COBOL/400 CEE API's
    By Guest.Visitor in forum Application Software
    Replies: 1
    Last Post: 08-25-1998, 12:37 PM
  5. AS/400 API's
    By Guest.Visitor in forum Application Software
    Replies: 2
    Last Post: 05-22-1998, 08:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts