SAS Documentation
SASĀ® Solution for Stress Testing
Reference manual - version 08.2021
Loading...
Searching...
No Matches
irmst_node_bep_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 Business Evolution Plans from SAS Risk Governance Framework
7
8 \param[in] ST_PRM.RUN_OPTION parameter table
9 \param[out] ST_STG.BEP_SUMMARY Output table containing a list of the Business Evolution Plans associated with this Analysis Run
10 \param[out] ST_STG.BEP_DETAILS Output table containing details of the Business Evolution Plans associated with this Analysis Run
11 \param[out] ST_STG.BEP_X_MODEL Output intersection table. Contains the relationship between Business Evolution Plans, Target Variables and related projection/allocation models
12
13 \details
14
15 This node makes a call to macro \link irm_rest_get_rgf_bep.sas \endlink to retrieve the list of Business Evolution Plans that are linked to the current analysis run.
16
17 In addition the following macro utilities are called:
18
19 | Macro name | Description | Further information |
20 |---------------------------|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------|
21 | irm_session_prepare | Reads RUN_OPTION table and sets logging options | \link irm_session_prepare.sas \endlink |
22 | 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 |
23
24 \ingroup nodes
25 \author SAS Institute Inc.
26 \date 2018
27*/
28
29/* Initialize session */
30%irm_session_prepare();
31
32%let ticket =;
33%irm_rest_get_rgf_bep(host = &rgf_protocol.://&rgf_host.
34 , server = &rgf_service.
35 , solution = &rgf_solution.
36 , port = &rgf_port.
37 , tgt_ticket = &tgt_ticket.
38 , username = &irm_user_id.
39 , password = &irm_user_password.
40 , filter = filter=hasObjectLinkTo('RMC','analysisRun_busEvolution',&analysis_run_id.,0)
41 , outds = &ds_out_bep_summary.
42 , outds_details = &ds_out_bep_details.
43 , outVarTicket = ticket
44 , outSuccess = httpSuccess
45 , outResponseStatus = responseStatus
46 , restartLUA = Y
47 , clearCache = Y
48 );
49
50/* Create the intersection table. Used to determine the number of parallel IRM partitions */
51proc sql;
52 create table &ds_out_bep_x_model. as
53 select distinct
54 t1.bepKey
55 , t1.bepName
56 , t2.planningDataKey
57 , t2.segmentationVarList
58 , t2.allocationFlg
59 , t2.allocationSchemeKey
60 , t2.interval
61 , t2.intervalCount
62 , t2.targetVariable
63 , t1.modelKey
64 , t1.modelRunKey
65 from
66 &ds_out_bep_details. as t1
67 join
68 &ds_out_bep_summary. as t2 on
69 t1.bepKey = t2.key
70 order by
71 t1.bepKey
72 ;
73quit;
74
75/* Cleanup session */
76%irm_session_cleanup;