BookmarkSubscribeRSS Feed
klroesner
Quartz | Level 8

Hello world,
We need a simple custom task in SAS Enterprise Guide 8.5 that takes a SAS data set as input and a library and data set name as task parameters. I can only find documents that are more than 10 years old. Furthermore, we do not have much experience in development with C#.Net and VB.Net.

 

  • Can anyone tell me where I can find current documentation or papers?
  • What is the easiest and fastest way to develop a custom task for SAS Enterprise Guide?
  • Can I use VS Code for development?
  • Is there a simple example somewhere that I could adapt?
3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

Not too sure what you are trying to do. Can you explain more, or at least give us the links to the documents you found?

ChrisHemedinger
Community Manager

I have several examples on my GitHub account, shared when I wrote a book about this topic. Here's one example:

 

https://github.com/cjdinger/SasRunningTotals

 

You can probably use VS Code for this with the .NET SDKs, but I've only ever used Visual Studio. You don't actually need a lot of code to make this work, especially for a simple task. But it takes some time to get familiar with the framework.

 

I'd recommend my book but I think it's out of print. I can offer this video demo though: Creating custom tasks for SAS Enterprise Guide 

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
AlanC
Barite | Level 11

I would highly recommend Chris's book. It is how I learned. I think I have done around half-dozen of them, most for clients.

 

Personally, I use Visual Studio to do the work. That said, there is no reason why VS Code wouldn't work. Look on my github site (savian-net) and there are probably examples there. Only use C#, not VB.NET. VB.NET is dead so no need looking at it.

 

It is fairly easy once you get started. Visual Studio will help you out a lot. Basically, make a file (class) and have it say implement the interface. Visual Studio will then basically ask 'do you want me to do it for you?'. Let it fill in the empty places and you put in the code. Using AI in VS, you can ask it to build a simple one for you. 'Vibe' code it.

 

Look up interfaces and that will tell you how it works. I looked up a simple analogy:

 

The waiter (API) is the intermediary that communicates your requests to the kitchen and brings the food back to you.

 

 

 

https://github.com/savian-net

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 336 views
  • 1 like
  • 4 in conversation