I am trying to create a chart that shows me the return value (RET) for the next 3 months for a given quarterly index (quart_index). For example, if the quarterly index is 1, then I need the return values for months 4, 5, and 6. I am using stock data from 2009- 2018 and need the returns to appear for the correct year as well.
Welcome to the forums!
Please post example data in usable form (in a data step with datalines), so we can see the variables, their types and contents, and eventual formats. Use the "little running man" icon for posting code.
Also post the expected result.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.