title =%quote(Table 1&tableletter.. &aggregated.Adjusted Characteristics of &grouplabel. (Propensity Score Matched&dpcomma., &ratiolabel.&caliperlabel.) in the &database. from &startdateformatted. to &&enddate&periodid.formatted.&subgrouptitle.),
****************************************************************************************************
****************************************************************************************************
* PROGRAM: baseline_output.sas
* Created (mm/dd/yyyy): 03/10/2021
*--------------------------------------------------------------------------------------------------
* PURPOSE: This macro drives the creation of Baseline Characteristics Tables proc report output
* Utility macro %baseline_procreport created to execute the proc report for each baseline table
*--------------------------------------------------------------------------------------------------
* Sentinel Coordinating Center
* info@sentinelsystem.org
***************************************************************************************************;
%macro baseline_output();
%put =====> MACRO CALLED: baseline_output;
%if %eval(&numbaselinetablegrp.>0) %then %do;
/* Set to 2 for effect estimate tables */
/*********************************************************************************************/
/*********************************************************************************************/
%macro baseline_procreport(order = ,
/*save data to reportdata folder*/
%isdata(dataset=repdata.table1&tableletter.);
%if %eval(&nobs.<1) %then %do;
%let dataset = table1_&periodid.;
/*if T6 - merge all switchsteps and create new columns*/
%if &reporttype. = T6 %then %do;