Help using Base SAS procedures

Conditionally create a monthly data set

Accepted Solution Solved
Reply
Senior User
Posts: 1
Accepted Solution

Conditionally create a monthly data set

[ Edited ]
 

Accepted Solutions
Solution
‎09-29-2017 11:51 AM
Super User
Posts: 23,724

Re: Conditionally create a monthly data set

Posted in reply to Rasmusma1995
Welcome to the SAS forums.

Unfortunately your question and code are not clear. Or at least what you're looking for isn't clear. Can you please clarify what exactly you need help with.

I would also strongly suggest looking at the SAS Macro Appendix which has several sample macros, including one to check and see if a data set exists. That may be a good starting point for your solution.

Note: I've modified your subject line to make it more descriptive and attempted to format your code, but it's incomplete and buggy - you have incorrectly formed comments so it's hard to read or understand. And a big suggestion that will help you - include comments. Always. It tells both future you and others what you're attempting to accomplish or expecting.

View solution in original post


All Replies
Solution
‎09-29-2017 11:51 AM
Super User
Posts: 23,724

Re: Conditionally create a monthly data set

Posted in reply to Rasmusma1995
Welcome to the SAS forums.

Unfortunately your question and code are not clear. Or at least what you're looking for isn't clear. Can you please clarify what exactly you need help with.

I would also strongly suggest looking at the SAS Macro Appendix which has several sample macros, including one to check and see if a data set exists. That may be a good starting point for your solution.

Note: I've modified your subject line to make it more descriptive and attempted to format your code, but it's incomplete and buggy - you have incorrectly formed comments so it's hard to read or understand. And a big suggestion that will help you - include comments. Always. It tells both future you and others what you're attempting to accomplish or expecting.
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 311 views
  • 0 likes
  • 2 in conversation