|
|||
|
So I have the same date in my code to grab different data sets, and If i want to change the month from say 072012 to 082012. Rathter then do it in every data step is it possible to make it so I only have to change it once?
|
|
|
||||
|
||||
|
|
|
|||
|
On Tuesday, August 7, 2012 11:43:01 AM UTC-7, (unknown) wrote:
> So I have the same date in my code to grab different data sets, and If i want to change the month from say 072012 to 082012. Rathter then do it in every data step is it possible to make it so I only have to change it once? Make it a macro variable, then you only need to change it once. |
|
|||
|
On Tuesday, August 7, 2012 3:23:22 PM UTC-4, Ya Huang wrote:
> On Tuesday, August 7, 2012 11:43:01 AM UTC-7, (unknown) wrote: > So I have the same date in my code to grab different data sets, and If i want to change the month from say 072012 to 082012. Rathter then do it in every data step is it possible to make it so I only have to change it once? Make it a macro variable, then you only need to change it once. How would I make it a macro variable? |
|
|||
|
On Tuesday, August 7, 2012 12:46:55 PM UTC-7, (unknown) wrote:
> On Tuesday, August 7, 2012 3:23:22 PM UTC-4, Ya Huang wrote: > > > On Tuesday, August 7, 2012 11:43:01 AM UTC-7, (unknown) wrote: > So I have the same date in my code to grab different data sets, and If i want to change the month from say 072012 to 082012. Rathter then do it in every data step is it possible to make it so I only have to change it once? Make it a macro variable, then you only need to change it once. > > > > How would I make it a macro variable? %let my_date=082012; %put &my_date; data want; set extract_&my_date; run; |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|