Showing posts from December, 2007

SAS and LINQ - Part 1

So, I am just getting my feet wet with LINQ, the new integrated query language within .NET. There are loads of articles on LINQ elsewhere. What I want to do is to illustrate LINQ with SAS and this is my starting point.

Look at the following code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Windows.Forms;

namespace WindowsFormsApplication2
public partial class Form1 : Form
public Form1()

private void btnGetData_Click(object sender, EventArgs e)
XElement table =XElement.Parse(
&ltName&gt Alfred &lt/Name&gt
&ltSex&gt M &lt/Sex&gt
&ltAge&gt 14 &lt/Age&gt