**************************************************************************************************** * PROGRAM OVERVIEW **************************************************************************************************** * * PROGRAM: initialize_macro_variables.sas * Created (mm/dd/yyyy): 11/30/2020 * *-------------------------------------------------------------------------------------------------- * PURPOSE: The macro initializes global macro variables * * Program inputs: * * Program outputs: * * PARAMETERS: * * Programming Notes: * -Macro variables read in from CREATEREPORTFILE are set to global in processinputfiles.sas * *-------------------------------------------------------------------------------------------------- * CONTACT INFO: * Sentinel Coordinating Center * info@sentinelsystem.org * ***************************************************************************************************; %macro initialize_macro_variables(); %put =====> MACRO CALLED: initialize_macro_variables ; /*variables related to DPs*/ %global num_dp random_dplist masked_dplist database; %let num_dp = 0; %let masked_dplist =; %let database = ; /*variables related to query*/ %global runidlist numrunid; %let runidlist = ; %let numrunid = 0; /*variables assigned to the start and end date of the query - used in all titles*/ %global startdateformatted enddateformatted minqueryyear maxqueryyear; %let startdateformatted = ; %let enddateformatted = ; %let minqueryyear = ; %let maxqueryyear = ; /*variables related to createreport input file*/ %global ReportType small_cellcounts redactcolumns stratifybyDP seed groupsfile baselinefile tablefile figurefile labelfile itsregressionfile treeaggfile appendixfile selectionprobabilitiesfile CodeDescriptionsFile TableColumnsFile DPInfoFile L2ComparisonFile look_start look_end DateDistributed report_destination; %let ReportType= ; %let small_cellcounts = ; %let redactcolumns =; %let stratifybyDP = ; %let seed = ; %let groupsfile = ; %let baselinefile = ; %let tablefile = ; %let figurefile = ; %let labelfile = ; %let itsregressionfile = ; %let treeaggfile = ; %let appendixfile = ; %let selectionprobabilitiesfile = ; %let CodeDescriptionsFile = ; %let TableColumnsFile = ; %let DPInfoFile = ; %let L2ComparisonFile = ; %let look_start = 1; %let look_end = 1; %let datedistributed = ; %let report_destination = ; /*tablefile and figurefile variables*/ %global datasetlist figurelist tdatasetlist tdatasetlistnum includegroupinfigure; %let datasetlist = ; %let tdatasetlist = ; %let tdatasetlistnum = ; %let figurelist = ; %let includegroupinfigure = ; /*baseline table variables*/ %global numbaselinetablegrp baselinerowitalics numprofilecovarstoinclude; %let numbaselinetablegrp =0; %let baselinerowitalics =; %let numprofilecovarstoinclude=0; /*groupsfile table variables*/ %global output_code_distribution; %let output_code_distribution = N; /*L2 report variables*/ %global numl2comparisons; %let numl2comparisons = 0; /*label file variables */ %global label_length cens_elig_label cens_dth_label cens_dpend_label cens_qryend_label cens_episend_label cens_spec_label cens_event_label; %let label_length = 250; %let cens_elig_label =Disenrollment; %let cens_dth_label =Evidence of death; %let cens_dpend_label =End of data partner data; %let cens_qryend_label =End of query period; %let cens_episend_label =End of exposure episode; %let cens_spec_label =Occurence of request-defined censoring criteria; %let cens_event_label =Occurence of event; /*Age stratification format */ %global agefmt; /*Output counter variables*/ %global tableletter tablecount; /*output_agg_data to msocdata*/ %global output_agg_data; %let output_agg_data = Y; /*zipfile*/ %global zipfile; %let zipfile = ; /* covariate codes formats */ %global maxlen_studyname; %let maxlen_studyname = 0; /* Total number of unique stratifications by file type*/ %global numstrata_t1cida numstrata_t2cida numstrata_t2conc; %let numstrata_t1cida = 0; %let numstrata_t2cida = 0; %let numstrata_t2conc = 0; %put =====> MACRO ENDED: initialize_macro_variables ; %mend initialize_macro_variables;