Reading sas datasets in c#
<p>I am writing c# add-in for using it in sas enterprise guide. I need to read datasets from sas library via c#. How can I do that?</p>

<p>I inherited myClass from SAS.Tasks.Toolkit.SasTask as below</p>

<pre><code>namespace AB.CD.SASAddin.EF
{
    [ClassId("11187e27-6c84-47f2-8700-9edaf8bf8634")]
    [Version(1.0)]
    [IconLocation("AB.CD.SASAddin.EF.GH.ico")]
    public class myClass : SAS.Tasks.Toolkit.SasTask
....
</code></pre>

<p>so at the InitializeComponent function if I set </p>

<blockquote>
  <p>this.RequiresData = true;</p>
</blockquote>

<p>It opens a dialog at the begining of add-in start. On the dialog I can select a dataset for calculations. But actually I need to read more than one datasets.</p>

<p>So how can I read any sas library dataset from c# at runtime?</p>

<pre><code>private void InitializeComponent()
{
  this.RequiresData = true;
  this.GeneratesSasCode = false;
  this.GeneratesReportOutput = false;
  this.ProcsUsed = "ARBOR, SQL";
  this.ProductsRequired = "BASE";
  this.TaskCategory = "QQ";
  this.TaskDescription = "QQQ";
  this.TaskName = "XXX";
}
</code></pre>