This SAS KB article explains how to find used and available space in SAS Fraud Management User Defined segments.
Run the following SQL query in the System of Records (SOR) database as the sassorapp user:
SELECT
x.segment_acronym,
x.business_unit_id,
TO_NUMBER(p.property_value) AS max_user_segment_length,
x.segment_length as SEGMENT_USED_LENGTH,
TO_NUMBER(p.property_value) - x.segment_length AS space_available_for_segment
FROM
(
SELECT
sd.segment_acronym,
fd.business_unit_id,
SUM(fd.field_length) AS segment_length
FROM FCMCORE.fcm_field_definition fd
INNER JOIN FCMCORE.fcm_segment_definition sd
ON fd.segment_id = sd.segment_id
AND fd.end_build_id IS NULL
AND sd.segment_acronym LIKE 'V%'
AND sd.segment_acronym <> 'V##'
GROUP BY
sd.segment_acronym,
fd.business_unit_id,
sd.business_unit_id
) x
CROSS JOIN FCMCORE.fcm_property p
WHERE p.property_name = 'max_user_segment_length'
ORDER BY
x.segment_acronym,
x.business_unit_id;
The SAS Fraud Management web application uses sassorapp to access the System of Record (SOR) database credentials.
Here is a sample output of the above SQL query from a SAS Fraud Management SOR (Oracle) database.
Additional Information