Date Quarter Selector Task

The date quarter selector task displays an Options tab containing a combo box. The choices in the combobox are: When a selection made and values are specified in any dependent controls the following macro variables are created and set as follows:

An example of the code generated by this task when "Next Quarter" is selected:

%global quarter;
%global quarter_end;
%global quarter_rel;
%global quarter_label;
%let quarter = %sysfunc(intnx(Quarter, %sysfunc(date()), 1, b), DATE9.);
%let quarter_end = %sysfunc(intnx(Quarter, %sysfunc(date()), 1, e), DATE9.);
%let quarter_label = Next Quarter;
%let quarter_rel = Q1Q;
%put _GLOBAL_;

The macro variable values set by this example code, if the current quarter is the first quarter of 2017, are:

 GLOBAL QUARTER 01APR2017
 GLOBAL QUARTER_END 30JUN2017
 GLOBAL QUARTER_LABEL Next Quarter
 GLOBAL QUARTER_REL Q1Q