Running Basic Scripts That Contain Syntax Commands (SCRIPT command)

If a Basic script that is run via the SCRIPT command contains syntax commands, those commands must be run asynchronously. To run commands asynchronously, set the bSync parameter of the ExecuteCommands method to False, as in:

Dim objSpssApp As spsswinLib.Application16
Dim strCommands As String
Set objSpssApp=CreateObject("SPSS.Application16")

' Construct and execute syntax commands:

strCommands = "GET FILE = '/data/bank.sav'. " & vbCr
strCommands = strCommands & "Display Dictionary."
objSpssApp.ExecuteCommands strCommands, False