SAS Documentation
SASĀ® Solution for Stress Testing
Reference manual - version 08.2021
Loading...
Searching...
No Matches
irm_get_swc_property.sas File Reference

Returns the value of a given property for the specified Software Component. More...

Go to the source code of this file.

Detailed Description

Returns the value of a given property for the specified Software Component.

Parameters
[in]swc_nameName of the Software Component
[in]propertyName of the property to retrieve
[in]debugcontrols whether debug information is printed to the log. Values: True/False. (Default: false)
[in]pattern_match_flgFlag (Y/N). Controls whether pattern match (Y) or exact match (N) is performed. (Default: N)
[out]outvarName of the output macro variable storing the value of the requested property. (Default: swc_property_value)
[out]out_dsoptional Name of the output table storing the list of matched properties. (Default: <blank>)

This macro will query the specified Software Component metadata object and returns the value of the requested property/properties.
Pattern match (through regular expression) is performed if pattern_match_flg = Y.
In this case the input parameter property can contain the wildcard symbol:

  • special wildcard character * is automatically converted into regular expression (.*), unless it has been escaped using backslash (i.e. \*)
  • special dot character . is automatically escaped --> \.

When pattern matching is enabled, the output macro variable (specified with the outvar parameter) is a semi-colon separated list of <property_name>=<property-value>

Example
Retrieve all registered IRM federated areas:

%let swc_property_value =;
%irm_get_swc_property(swc_name = IRM Mid-Tier Server
, property = com.sas.solutions.risk.irm.fa.(?!readonly.)*
, debug = true
, outvar = swc_property_value
, out_ds = irm_federated_areas
, pattern_match_flg = Y
);
%put swc_property_value: %superq(swc_property_value);

Sample output macro variable and result table:

swc_property_value: com.sas.solutions.risk.irm.fa.0.3.4=/sas/config/Lev1/AppData/SASIRM/fa.0.3.4;com.sas.solutions.risk.irm.fa.ifrs9.2017.10=/sas/repositories/fa_ifrs9/irm
swc_name uri_Property property_name property_value
IRM Mid-Tier Server OMSOBJ:Property\A5PUZKI1.AC0002LD com.sas.solutions.risk.irm.fa.0.3.4 /sas/config/Lev1/AppData/SASIRM/fa.0.3.4
IRM Mid-Tier Server OMSOBJ:Property\A5PUZKI1.AC0004SL com.sas.solutions.risk.irm.fa.ifrs9.2017.10 /sas/repositories/fa_ifrs9/irm

Note the use of negative lookahead expression (?!readonly.) to exclude from the match any property that would look like com.sas.solutions.risk.irm.fa.readonly.*

Author
SAS Institute Inc.
Date
2016

Definition in file irm_get_swc_property.sas.