Novinosrin,
Your solution works as well and I appreciate that you took some time over the weekend to look at it also nice that you included the defined period as part of the output.
I suggest you start a new topic, with a complete description of your objective, rather that "I want the same except ...". It will be far easier for us to help you.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.