Hello
I'm back because i need help. I'm writing some Custom Tasks for Enterprise Guide 4.3.
I'm using for that, Visual Studio 2008 with the template SAS.Tasks.VBTemplate42 delivered by SAS.
But i notice that the property "OutputDataCount" is ReadOnly and the function "OutputDataInfo" is impossible to override because it is not declared Overridable.
How can i write what was written for Guide 4.1 listed in this discussion ?
Will I have to write everything without using the template ?
In this case, what's the point of the template ?
Where can i find detailed documentations ?
Thank's
Victor,
In the template, the SasTask class now implements many of the mundane parts of the task API contract. You override just the parts that your task needs. As a result, you'll have many fewer lines of code that deal with the ISASTask* implementation.
To control your output data count, you override the OutputDataCount property in your task class, and return the number that is correct for your task.
And you override the OutputDataDescriptorList property to return more details:
public override int OutputDataCount { get { return 1; } } // build the output description for the data set public override System.Collections.Generic.List OutputDataDescriptorList { get { System.Collections.Generic.List outList = new System.Collections.Generic.List(); string[] parts = settings.OutputData.Split(new char[] { '.' }); if (parts.Length == 2) { outList.Add( // use this helper method to build the output descriptor SAS.Shared.AddIns.SASTaskDataDescriptor.CreateLibrefDataDescriptor( Consumer.AssignedServer, parts[0], parts[1], "") ); } return outList; } }
Let me know if you need a VB.NET example of this.
Chris
Hello
Indeed, it has changed from the 4.1. Without your help, I would never have found.
That's why i'm very interested in any document or sample on Custmer Tasks, because I do a lot of them. It is very difficult to find something on them.
Thank's
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.