karlomutschler
Programmer
hello and good day
in my SAS script I have the following proc sql statement:
rsubmit;
proc sql;
create table myTable as
(
select ProductTarif,
sum(number_of_items)
from Orders
where Sales_Channel in ('A', 'B', 'C')
and ProductTarif in ('X', 'Y', 'Z')
and EFFECTIVE_REPORT_DATE >= '26DEC2005'd
group by ProductTarif
);
quit;
endrsubmit;
With variations of the EFFECTIVE_REPORT_DATE this proc sql statement
is repeated a number of times thoughout the script.
Therefore I would like to declare a number of variables (like
'Period', 'CurrMon', 'CurrWeek' ) once at the start of the script
to take care of the various instances of EFFECTIVE_REPORT_DATE
throughout the script.
How do I .....?
Any advice in this respect would be highly appreciated.
Kindest regards
Karlo
in my SAS script I have the following proc sql statement:
rsubmit;
proc sql;
create table myTable as
(
select ProductTarif,
sum(number_of_items)
from Orders
where Sales_Channel in ('A', 'B', 'C')
and ProductTarif in ('X', 'Y', 'Z')
and EFFECTIVE_REPORT_DATE >= '26DEC2005'd
group by ProductTarif
);
quit;
endrsubmit;
With variations of the EFFECTIVE_REPORT_DATE this proc sql statement
is repeated a number of times thoughout the script.
Therefore I would like to declare a number of variables (like
'Period', 'CurrMon', 'CurrWeek' ) once at the start of the script
to take care of the various instances of EFFECTIVE_REPORT_DATE
throughout the script.
How do I .....?
Any advice in this respect would be highly appreciated.
Kindest regards
Karlo