Tip of the Day

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

The federal fiscal year starts October 1 and runs through September 30. For example, FFY2010 is October 1, 2009 through September 30, 2010. This date offset unfortunately does not conform with any of the typical formats provided with Base SAS.

Here's an easy to use bit of conditional logic that will any create a new year variable for Federal Fiscal Year (FFYear) based on any date:

if month(open_date) in (10 11 12) then FFYear = year(open_date) + 1;
else FFYear = year(open_date);
Submitted By Tasha Chapman

Feel free to comment on this tip.


Prior tip - Next tip -- Random Tip

Submit a Tip


 

Tips Index by Status

Currently in Use | Yet to be Scheduled | Still Under Review

Search Tips:


The Tip of the Day Project

A new technical Tip of the Day related to SAS software will be shown on this page and the sasCommunity.org main page every day. Before getting started, you can Browse and Search the current list of tips contributed by users.

Anyone can participate. We hope you do! Here's how:

  1. Submit a Tip by posting a SAS tip that you think others might find useful
  2. Review a Tip prior to publishing
This effort is similar to, and was motivated by, the WikiPedia Tip of the Day Project. Please tell us what you think

Personal tools
Namespaces
Variants
Actions
Navigate
Sasopedia Detail
Contribute
Connect
Toolbox