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 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

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