<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Vbscript - How to put path or SAS program name with spaces in between in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Vbscript-How-to-put-path-or-SAS-program-name-with-spaces-in/m-p/630796#M35666</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm have successfully schedule my program with EG, plus I getting idea from&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-SAS-EG-Projects-sequentially/td-p/342843" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-SAS-EG-Projects-sequentially/td-p/342843&lt;/A&gt;&amp;nbsp;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)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;prjName = "C:\Users\XXXXXX\Desktop\Project1.egp"    'Project Name&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;prjPaths = Array("C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT1.egp", "C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT2.egp")
For Each prjName in prjPaths&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The only issue for me is i have project which the name have space or path with space, like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;path =&amp;nbsp;C:\Users\XXXXXX\Desktop\New Schedule

project name =&amp;nbsp;PROJECT 1.egp&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I have try to google but no luck and trying the code such as&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"""C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT 1.egp"""

"C:\Users\XXXXXX\Desktop\NewSchedule\""PROJECT 1.egp"""&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Appreciated if you could guide/advise me the correct syntax to fix the above, thank you for your time and thank in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 04:03:03 GMT</pubDate>
    <dc:creator>sagulolo</dc:creator>
    <dc:date>2020-03-10T04:03:03Z</dc:date>
    <item>
      <title>Vbscript - How to put path or SAS program name with spaces in between</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Vbscript-How-to-put-path-or-SAS-program-name-with-spaces-in/m-p/630796#M35666</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm have successfully schedule my program with EG, plus I getting idea from&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-SAS-EG-Projects-sequentially/td-p/342843" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-SAS-EG-Projects-sequentially/td-p/342843&lt;/A&gt;&amp;nbsp;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)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;prjName = "C:\Users\XXXXXX\Desktop\Project1.egp"    'Project Name&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;prjPaths = Array("C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT1.egp", "C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT2.egp")
For Each prjName in prjPaths&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The only issue for me is i have project which the name have space or path with space, like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;path =&amp;nbsp;C:\Users\XXXXXX\Desktop\New Schedule

project name =&amp;nbsp;PROJECT 1.egp&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I have try to google but no luck and trying the code such as&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"""C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT 1.egp"""

"C:\Users\XXXXXX\Desktop\NewSchedule\""PROJECT 1.egp"""&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Appreciated if you could guide/advise me the correct syntax to fix the above, thank you for your time and thank in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 04:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Vbscript-How-to-put-path-or-SAS-program-name-with-spaces-in/m-p/630796#M35666</guid>
      <dc:creator>sagulolo</dc:creator>
      <dc:date>2020-03-10T04:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Vbscript - How to put path or SAS program name with spaces in between</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Vbscript-How-to-put-path-or-SAS-program-name-with-spaces-in/m-p/632368#M35693</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today i have tested the vbscript code below and it run without any issue, not sure why it failed at the begining.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;prjPaths = Array("C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT 1.egp", "C:\Users\XXXXXX\Desktop\NewSchedule\PROJECT 2.egp")
For Each prjName in prjPaths&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Hope this help others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 09:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Vbscript-How-to-put-path-or-SAS-program-name-with-spaces-in/m-p/632368#M35693</guid>
      <dc:creator>sagulolo</dc:creator>
      <dc:date>2020-03-16T09:37:37Z</dc:date>
    </item>
  </channel>
</rss>

