Obtaining the value for ActionableEntityId using the processAlertResponse SAS® stored process in SAS® Social Network Analysis Server


In SAS Social Network Analysis Server, you can disposition alerts. Dispositioning uses the processAlertResponse SAS stored process. The ActionableEntityId value is stored in the &AE_ID macro variable. However, if you use a %PUT statement with the AE_ID macro variable in the processAlertResponse SAS stored process, then the macro variable returns an empty value.

Example:

%put &=ae_id;
AE_ID=

Workaround

Follow the steps below to generate a data set that contains the ActionableEntityId value.

  1. Download the processAlertResponse.map file and save it at the same location where the getActionableEntities.map file resides.

Default map-file-location is 

For Windows: !SASROOT\snamva\sasmisc\xml\map\

For UNIX: !SASROOT/mis/snamva/xml/map/

2. Copy the XML definition from getActionableEntities.map file. Normally it is very first line in the file.

Here is an example of an XML definition:

<?xml version="1.0" encoding="windows-1252"?>

3. Paste the copied XML definition in the processAlertResponse.map file such that the definition is the very first line in the file.

4. In the processAlertResponse SAS stored process, use this code:

libname entities xmlv2 xmlmap='map-file-location-processAlertResponse.map';
libname myLocalLib 'SAS-library';
 
data myLocalLib.alertEntities;
  set entities.entities;
run;

 

In addition to a value for ActionableEntityId, the data set also contains values for ActionableEntityName and ActionableEntityType.

ACTIONABLEENTITYNAME is AEN7622, ACTIONABLEENTITYTYPE is LOAN, and ACIONABLEENTITYID is 10004.

You can extract the value of ActionableEntityId from the data set, and use the value in the processAlertResponse SAS stored process.


Downloads

processAlertResponse.map