Touchstone Re 2023 API Reference
SubmitExportProgramDlfBinary Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > DataExportServiceClient Class : SubmitExportProgramDlfBinary Method
Contains a SubmitExportProgramDlfBinaryRequest that specifies the Business Unit SID and SQL Instance SID associated with the program aggregate loss analysis results to export, as well as the ExportOptions object that enables you to configure the export job.
Submits a request to export a set of program aggregate loss analysis results to a detailed loss file (DLF) in binary format.

DLFs contain area, subarea, and line of business information in binary or comma-separated values (CSV) format. Touchstone Re can create a DLF from an aggregate loss analysis that a user ran against a reinsurance program or a portfolio of reinsurance treaties (or layers). You can use DLFs in binary format in both Touchstone Re and CATRADER.

When submitting the request, you specify the sequential identifier of the analysis that generated the results to export, the destination of the DLF, the currency to include in the DLF, and so on.

Syntax
Public Function SubmitExportProgramDlfBinary( _
   ByVal request As SubmitExportProgramDlfBinaryRequest _
) As SubmitExportProgramDlfBinaryResponse
Dim instance As DataExportServiceClient
Dim request As SubmitExportProgramDlfBinaryRequest
Dim value As SubmitExportProgramDlfBinaryResponse
 
value = instance.SubmitExportProgramDlfBinary(request)

Parameters

request
Contains a SubmitExportProgramDlfBinaryRequest that specifies the Business Unit SID and SQL Instance SID associated with the program aggregate loss analysis results to export, as well as the ExportOptions object that enables you to configure the export job.

Return Value

A SubmitExportProgramDlfBinaryResponse that contains the Activity SID that uniquely identifies the asynchronous web service call that you made to submit the export job.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Analysis SID to pass into this method, use the GetActivities() method.

For information about submitting a program aggregate loss analysis job, see the SubmitProgramAggregateLossAnalysis() method.

Example
The following example shows how to submit a request to export program aggregate loss analysis results to a DLF in binary format using the SubmitExportProgramDlfBinary() method:
using AIR.Services.Common.Data;
using AIR.Services.DataExport.Api;
using AIR.Services.DataExport.Data;
using System;
            
class SnippetSubmitExportProgramDlfBinary
{
    private static void SubmitExportProgramDlfBinary(int businessUnitSid, int sqlInstanceSid, int analysisSid, string exportBasePath)
    {
        DataExportServiceClient client = new DataExportServiceClient();
        SubmitExportProgramDlfBinaryRequest request = new SubmitExportProgramDlfBinaryRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.ExportOptions = new AggregateLossAnalysisDlfExportOptions()
        {
            AnalysisSid = analysisSid,
            GeographyLevel = GeographyLevel.Subarea,
            CurrencyCode = "USD",
            DestinationFileName = "DLF_Export_Program_Binary",
            DestinationFolder = exportBasePath,
            FinancialPerspective = ReinsuranceFinancialPerspective.Contract,
            Participation = ReinsuranceParticipation.Gross,
            Comments = " Export submitted at " + DateTime.Now.ToString("dd MMM yyyy HH:mm"),
        };
        SubmitExportProgramDlfBinaryResponse response = client.SubmitExportProgramDlfBinary(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Submitted Successfully to HPC with Activity SID: " + response.ActivitySid);
        }
    }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataExportServiceClient Class
DataExportServiceClient Members