Administration and Deployment

Installing and maintaining your SAS environment
BookmarkSubscribeRSS Feed
Kal99
Calcite | Level 5

Greetings, I have used the following code with VB6 to call SAS program in background, on local machine. Now I am using VB.Net / Visual studio 2019 and it is not working anymore (method is pretty simple below that worked in past - kindly let me know how to tweak/adjust it to make it work. Thanks in advance

 

Set SASObj = CreateObject("SAS.Application.940")
SASObj.submit ("%include 'c:\Program.sas ';run;")
SASObj.Visible = False
SASObj.Wait = True
SASObj.Quit
Set SASObj = Nothing

1 REPLY 1
gwootton
SAS Super FREQ
This documentation talks about the difference between VB6 and .NET:

Programming in the .NET Environment
https://go.documentation.sas.com/doc/en/itechcdc/9.4/itechwcdg/p1t48e0y92v4jqn1csygma6z7178.htm
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

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