BookmarkSubscribeRSS Feed
Greg
Calcite | Level 5

Hi there,

I am trying to use the new SASStoredProcessService (StoredProcessService.dll and not the old way sps.dll).

The following experience is ok but i would not to send the userContext  (because i am in a SEG Custom Task already connected)

Dim usrContext As New

SAS.BI.AuthenticationService.ClientUserContext.UserContext

        Dim login As New SAS.BI.AuthenticationService.ClientUserContext.Login

        ' Initiate connection

        login = usrContext.GetOmrCredentials()

        ' Define stored process

        Dim stp As New

SAS.BI.StoredProcessService.StoredProcess(usrContext, "/Shared

Data/Reports/Examples/Test_VBNET")

any ideas ?

Regards,

Greg

1 REPLY 1
ChrisHemedinger
Community Manager

Hi Greg,

I believe you still need to pass a user context object, but you're correct: you should not have to reauthenticate.

I'll see if I can find an example for getting the user context with an existing session.  In the meantime, you might see if you can make use of the information in SAS.Tasks.Toolkit.Helpers.SasMetadataProfile class. 

I think that if you make use of that class, you'll have add additional references to your project for:

  SAS.EG.SDS.Model.dll

  SAS.EG.SDS.Metadata.MetadataManager.dll

That's just a requirement to resolve some external dependencies when building the project.  The classes within those DLLs are not documented for customer use: only the classes in SAS.Tasks.Toolkit.dll.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 665 views
  • 0 likes
  • 2 in conversation