SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
sagulolo
Quartz | Level 8

Dear all,

 

I'm have successfully schedule my program with EG, plus I getting idea from https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-SAS-EG-Projects-sequentially/td-p/342843 to schedule few project in a sequence that I want by amended the vbscript, please see below which the schedule job run without any issue(at least in my view the task is perform without issue)

 

From 

 

prjName = "C:\Users\XXXXXX\Desktop\Project1.egp"    'Project Name

 

 

To

prjPaths = Array("C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT1.egp", "C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT2.egp")
For Each prjName in prjPaths

The only issue for me is i have project which the name have space or path with space, like 

path = C:\Users\XXXXXX\Desktop\New Schedule

project name = PROJECT 1.egp 

I have try to google but no luck and trying the code such as 

"""C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT 1.egp"""

"C:\Users\XXXXXX\Desktop\NewSchedule\""PROJECT 1.egp"""

Appreciated if you could guide/advise me the correct syntax to fix the above, thank you for your time and thank in advance.

1 REPLY 1
sagulolo
Quartz | Level 8

Dear all,

 

Today i have tested the vbscript code below and it run without any issue, not sure why it failed at the begining.

 

prjPaths = Array("C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT 1.egp", "C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT 2.egp")
For Each prjName in prjPaths

 Hope this help others.

 

Thanks for your time

sas-innovate-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 697 views
  • 0 likes
  • 1 in conversation