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
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.