×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

incrementing timeframes

incrementing timeframes

incrementing timeframes

(OP)
I have a situation where I need to take a file of account data and determine when the first occurrence of a specific event occurred and then measure performance for each account for 24 months after that particular event occurred.

For example I may have one account where the event occurred in May 2007 and need to designate that as month 1 and pull in the next 24 months of data for that account.

However, I may also have an account for which that specific event occurred in July of 2010 and wouldn't have a full 24 months of performance available after that occurrence, but would need to then pull in however many months are available after the event.

I haven't been able to come up with any ideas for this yet.  Any suggestions are greatly appreciated.

RE: incrementing timeframes

You need to follow the steps below;

1. Get all the accounts and events into one dataset
2. sort that Dataset by account no and month (remember you need to convert month field into date field)
3. Then its simple datastep processing with first. and last. on account number and retain statement on counter variable to go upto maximum 24  

sasbuddy
http://sites.google.com/site/sasbuddy/
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close