SAS Documentation
SASĀ® Solution for Stress Testing
Reference manual - version 08.2021
Loading...
Searching...
No Matches
irmst_node_attribution_finalize.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 Compute attribution movements
7
8 \param[in] ST_PRM.RUN_OPTION parameter table
9 \param[out] ST_STG.ATTRIBUTION_CONFIG Output table containing details of the Attribution Analysis
10
11 \details
12
13 This node makes a call to macro \link irmc_gen_attrib_analysis_movmt.sas \endlink to compute the delta-movements across the various attribution runs.
14
15 In addition the following macro utilities are called:
16
17 | Macro name | Description | Further information |
18 |---------------------------|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------|
19 | irm_session_prepare | Reads RUN_OPTION table and sets logging options | \link irm_session_prepare.sas \endlink |
20 | 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 |
21
22 \ingroup nodes
23 \author SAS Institute Inc.
24 \date 2018
25*/
26
27/* Initialize session */
28%irm_session_prepare();
29
30%let outlib = %scan(&ds_out_sync., 1, .);
31%irmc_gen_attrib_analysis_movmt(ds_in_attribution_config = &ds_in_attribution_config.
32 , ds_in_aggregation_config = &ds_in_aggregation_config.
33 , ds_in_map_movement = &ds_in_map_movement.
34 , ds_in_sync_result = &ds_in_sync_result.
35 , ds_in_var_dependency = &ds_in_dependency_config.
36 , ds_out = &outlib..&mart_table_name.
37 , dr_libref = &dr_libref.
38 , dr_library_name = &dr_library_name.
39 , tmp_libref = &tmp_libref.
40 , fa_path = &fa_path.
41 , mart_table_name = &mart_table_name.
42 , scenario_selection = &scenario_selection.
43 , base_dt = %sysfunc(datepart(&base_dttm.))
44 , stage_var = ECL_STAGE
45 , ecl_12m_var = ECL_12M
46 , ecl_lifetime_var = ECL_LIFETIME
47 , ecl_var = ECL
48 , stage_attribution_method = &stage_attribution_method.
49 , analysis_run_id = &analysis_run_id.
50 , analysis_run_name = &analysis_run_name.
51 , analysis_run_type = &analysis_run_type.
52 , cycle_name = &cycle_name.
53 , epsilon = 1e-10
54 , rgf_protocol = &rgf_protocol.
55 , rgf_host = &rgf_host.
56 , rgf_port = &rgf_port.
57 , rgf_service = &rgf_service.
58 , rgf_solution = &rgf_solution.
59 , tgt_ticket = &tgt_ticket.
60 , irm_user_id = &irm_user_id.
61 , irm_user_password = &irm_user_password.
62 );
63
64data &ds_out_sync.;
65 length
66 table_name $100.
67 data_type $20.
68 status $20.
69 ;
70 table_name = "&outlib..&mart_table_name.";
71 data_type = "View";
72 status = "Created";
73run;
74
75data &ds_out_datastore_config.;
76 set &ds_in_datastore_config. (where = (datastore_group_id = "Credit Risk"));
77 results_category = "ATTRIBUTION";
78 %if(%symexist(OUT_ANALYSIS_DATA_NAME)) %then %do;
79 analysis_data_name = cats("&OUT_ANALYSIS_DATA_NAME", ' - &current_dt_ymd. &current_tm_tod.');
80 %end;
81 %if(%symexist(OUT_ANALYSIS_DATA_DESC)) %then %do;
82 analysis_data_desc = cats("&OUT_ANALYSIS_DATA_DESC", 'for the base date <MONTH, 0, SAME, yymmddd10.>.\nCreated by user &IRM_USER_ID. on %sysfunc(datetime(), nldatmw200.)');
83 %end;
84run;
85
86
87/* Cleanup session */
88%irm_session_cleanup;