Joined: 06 Jun 2008 Posts: 8201 Location: Dubuque, Iowa, USA
CD = TODAY () ;
FORMAT CD YYMMDDN8. ;
creates variable CD to have the current date and formats it as YYMMDD for output.
www.sas.com has a link to the SAS documentation and there's a link to all their documentation (Support & Training at the top, then Product Documentation under Knowledge Base on the left) which is available without charge. I recommend you do some reading there since SAS is a very complex, full-featured programming language with over 35 years of history.