%put WARNING: (Sentinel) Tokens PROJID, WPTYPE, or WPID have incompatible values. Sentinel Views datasets will reside in a folder that may not match workplan;
****************************************************************************************************
****************************************************************************************************
* PROGRAM: create_report.sas
* Created (mm/dd/yyyy): 11/30/2020
*--------------------------------------------------------------------------------------------------
* PURPOSE: This macro drives the creation of QRP reports
*--------------------------------------------------------------------------------------------------
* Sentinel Coordinating Center
* info@sentinelsystem.org
***************************************************************************************************;
***************************************************************************************************;
* Initialize global macro variables and read in input files
***************************************************************************************************;
%put =====> MACRO CALLED: create_report;
/* If leave behind report runs then use reportid for log suffix */
%if &leavebehindreport = Y %then %do;
proc printto log="&output.qrp_report_log&reportid..log" new;
/* Need to retain work datasets from qrp for leave behind report.
Repdata is set to work directory when leave behind report is run,
and data for qrp report is in the msocdata folder */
proc datasets nowarn nolist lib=work kill; quit;
proc datasets nowarn nolist lib=repdata kill; quit;
proc datasets nowarn nolist lib=msocdata kill; quit;
/*read in JSON file and determine if there are any CSV files*/
%convert_inputfiles(lib=&INFOLDER, JSON_LIB=&infolder.macros/integration);
%convert_inputfiles(lib=&REPORTROOT.inputfiles/, JSON_LIB=&input.macros/integration);
proc printto log="&output.qrp_report_log.log" new;
/*Initialize global macro variables*/
%initialize_macro_variables();
/*read in input files and process input file parameters*/