As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.
Here are some tips for How to share your SAS knowledge with your professional network.
- Posting number 670, dated 14 Feb 1996 11:58:17
- Date: Wed, 14 Feb 1996 11:58:17 EDT
- Summary: User formats are easy
- Subject: Re: Plotting datetime format with truncated axis values.
%macro dtday ( start = 01feb96 ); data fmtdata (keep = fmtname start end label ); retain fmtname 'dtday' start "&start:00:00:00"dt; do day = 1 to 31 while (datepart(start) < intnx('month',"&start"d,1)); end = start + 86399; label = put(day,2.); output fmtdata; start = end + 1; end; run; proc format cntlin = fmtdata; run; %mend dtday;
harvesting and code polishing by:
--macro maven == the radical programmer 14:57, 23 May 2012 (EDT)