Skip to content

cjdinger/SAS.Tasks.Cardinality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SAS.Tasks.Cardinality


SAS Enterprise Guide custom task that calculates the number of distinct values for each variable in a data set. This version is implemented in C#.

Written by Chris Hemedinger as an example. It's one of a series of examples that accompany Custom Tasks for SAS Enterprise Guide using Microsoft .NET by Chris Hemedinger.

You can read more about how to use the task in this blog post: A custom task to check your data cardinality

About this example

This sample demonstrates a couple of useful techniques, including:

  • Submit a block of SAS code to the SAS session while your task UI is showing. The code runs asynchronously. Threading techniques are used to marshal the results back to the UI thread.
  • Show a "progress" form that allows you to cancel the asynchronous submit step, if needed.
  • Uses the SAS OLE DB data provider to read the contents of a SAS data set and populate the task UI with information.
  • Use the SAS.Tasks.Toolkit helper functions to add niceties to the task, such as a standard SAS program code header (SAS.Tasks.Toolkit.Helpers.UtilityFunctions.BuildSasTaskCodeHeader).

About

SAS Enterprise Guide custom task that calculates the number of distinct values for each variable in a data set.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published