Usage Note 10667: VBScript example to execute a code node in an Enterprise Guide project
Here is a sample VBScript program that can be used to execute a
particular code node in a particular project within Enterprise Guide and
save the results to HTML. In the VBScript below, you will need to change
the path to your .SEG file and the path to your .HTM file destination.
Refer to #002696 via your web browser at the location
#002696 and to
Enterprise Guide Help for more details on Ole Automation, Batch
Processing, and Scheduling.
Dim objGuide
Dim objProject
'---- Create the Enterprise Guide application.
Set objGuide = WScript.CreateObject("SASEGuide.Application")
'---- Open an existing project file
Set objProject = objGuide.Open("c:\test.seg")
'---- Run all the tasks
objProject.Run
'---- Get the results
Dim objResults
Set objResults = objProject.ProjectItems("Code1").Results("HTML")
'--- Change the style of the HTML results before we save them
objResults.Style = "SAS Web"
'---- Save the results to a file on the local server
objResults.SaveAs ( "c:\test.htm")
'---- Close the project
objProject.Close
objGuide.Quit
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | SAS Enterprise Guide | Microsoft Windows NT Workstation | 2.0 | |
| Microsoft Windows XP Professional | 2.0 | |
| Microsoft Windows 2000 Professional | 2.0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Date Modified: | 2003-08-21 09:23:33 |
| Date Created: | 2003-08-14 14:03:33 |