BookmarkSubscribeRSS Feed
gzr2mz39
Quartz | Level 8

Hi,

I'm currently using SAS 9.3 (W32_7PRO platform).

What is the visual basic code for calling and running a SAS program?

Thank you.

1 REPLY 1
esjackso
Quartz | Level 8

It has been awhile since Ive used VB but isnt there a shell function that allows dos command line like commands? Then you should be able to use regular batch like syntax to open sas and run a specific program.

Batch syntax:

"sas exe full path location" -sysin "sas program to run full path location"

Add the -log and or -print to save out the log and lst to specific files.

Eric

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
  • 1525 views
  • 0 likes
  • 2 in conversation