Why would the OP want to manipulate a "date" string in character format, simply by dividing it, without any validation along the way?
The power of SAS provides the data-accuracy and data-quality validation, which can be achieved using the INPUT function and the appropriate SAS INFORMAT. And, so, an invalid date will not be allowed to pass into the system.
Then, also, additional SAS functions YEAR, INTNX, etc. can be exploited to derive additional useful data-variables, which can help the user improve their data analysis processing, as has been explained in this post-thread.
Scott Barry
SBBWorks, Inc.
... View more