Verifying the validity of a SAS date literal.

Reply
Contributor
Posts: 27

Verifying the validity of a SAS date literal.

Hi,

 

Is there a SAS function to verify if a given SAS date literal value is a valid date?  For example, if I had the date literal "35feb95", is there a function I could pass it to and have it tell me that it is not a valid date?

 

PROC Star
Posts: 284

Re: Verifying the validity of a SAS date literal.

please go this thread, this has pretty much the answer you need

 

https://communities.sas.com/t5/Base-SAS-Programming/Isdate/m-p/367328#M87435

 

Ask a Question
Discussion stats
  • 1 reply
  • 86 views
  • 0 likes
  • 2 in conversation