DATA Step, Macro, Functions and more

How take all dates from curtain date to current date

Accepted Solution Solved
Reply
Contributor
Posts: 34
Accepted Solution

How take all dates from curtain date to current date

For example if date is 21feb2016 then
Output is like :
21feb2016
22feb2016
23feb2016
_ _ _ _
_ _ _ _

02dec2016(today)



Accepted Solutions
Solution
‎12-02-2016 02:37 AM
Super User
Posts: 6,936

Re: How take all dates from curtain date to current date

%let begin=21feb2016;

data want;
format wanted_date date9.;
do wanted_date = "&begin"d to today();
  output;
end;
run;
---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Solution
‎12-02-2016 02:37 AM
Super User
Posts: 6,936

Re: How take all dates from curtain date to current date

%let begin=21feb2016;

data want;
format wanted_date date9.;
do wanted_date = "&begin"d to today();
  output;
end;
run;
---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 34

Re: How take all dates from curtain date to current date

Thanks KurtBremser , Sir
Really appreciated
☑ This topic is SOLVED.

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

Discussion stats
  • 2 replies
  • 124 views
  • 1 like
  • 2 in conversation