Returns the value of a given property for the specified Software Component. More...
Go to the source code of this file.
Returns the value of a given property for the specified Software Component.
[in] | swc_name | Name of the Software Component |
[in] | property | Name of the property to retrieve |
[in] | debug | controls whether debug information is printed to the log. Values: True/False. (Default: false) |
[in] | pattern_match_flg | Flag (Y/N). Controls whether pattern match (Y) or exact match (N) is performed. (Default: N) |
[out] | outvar | Name of the output macro variable storing the value of the requested property. (Default: swc_property_value) |
[out] | out_ds | optional 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:
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:
Sample output macro variable and result table:
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.*
Definition in file irm_get_swc_property.sas.