SAS Documentation
SASĀ® Solution for Stress Testing
Reference manual - version 08.2021
Loading...
Searching...
No Matches
irmst_node_report_init.sas
Go to the documentation of this file.
1/*
2 Copyright (C) 2018 SAS Institute Inc. Cary, NC, USA
3*/
4
5/** \file
6 \brief Retrieve Analysis Data for the report generation
7
8 \param[in] RUN_OPTION Global parameter table for the jobflow execution
9 \param[in] REPORT_OPTION Global parameter table for the report generation
10 \param[in] %ds_in_rpt_config Input report configuration table. Contains the list of all available reports
11 \param[in] %ds_in_data_source_config Input configuration table. Contains the list of analysis data objects to retrieve from the data repository
12 \param[out] %ds_out_rpt_config Output report configuration table. Subset of the input report configuration table: contains the list of reports to be generated
13 \param[out] %ds_out_rpt_analysis_data Output table containing metadata information about all analysis data objects that were retrieved from the data repository.
14
15 \details
16
17 This node makes a call to macro \link irm_rgf_retrieve_analysis_data.sas \endlink to retrieve the requested tables from the data repository.
18
19 In addition the following macro utilities are called:
20
21 | Macro name | Description | Further information |
22 |---------------------------|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------|
23 | irm_session_prepare | Reads RUN_OPTION table and sets logging options | \link irm_session_prepare.sas \endlink |
24 | irm_session_cleanup | Removes all non-IRM WORK datasets/views and deletes all user-created macro variables from workspace session | \link irm_session_cleanup.sas \endlink |
25
26 \ingroup nodes
27 \author SAS Institute Inc.
28 \date 2018
29*/
30
31
32/* Initialize session */
33%irm_session_prepare();
34
35/* Subset the REPORT_CONFIG table, processing only the selected reports */
36data &ds_out_rpt_config.;
37 set &ds_in_rpt_config.
38 %if %sysevalf(%superq(report_id_list) ne, boolean) %then %do;
39 (where = (report_id in (%sysfunc(prxchange(s/(\w+)/"$1"/i, -1, &report_id_list.)))))
40 %end;
41 ;
42run;
43
44/* Retrieve all analysis data */
45%irm_rgf_retrieve_data(dr_libref = &dr_libref.
46 , dr_library_name = &dr_library_name.
47 , ds_in = &ds_in_data_source_config.
48 , ds_out = &ds_out_rpt_analysis_data.
49 , out_type = deferred
50 , rgf_protocol = &rgf_protocol.
51 , rgf_host = &rgf_host.
52 , rgf_service = &rgf_service.
53 , rgf_solution = &rgf_solution.
54 , rgf_port = &rgf_port.
55 , tgt_ticket = &tgt_ticket.
56 );
57
58/* Cleanup session */
59%irm_session_cleanup;