<?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 Re: how to add submit with sas 9.4 chinese on windows system in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819492#M323479</link>
    <description>&lt;P&gt;C:\Program Files\SASHome\SASFoundation\9.4\nls\zh\sasv9.cfg&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blueskyxyz_0-1655861188006.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72521i117CC038B4F59D42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blueskyxyz_0-1655861188006.png" alt="blueskyxyz_0-1655861188006.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226565"&gt;@japelin&lt;/a&gt;&amp;nbsp;Morning,&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;japelin,&amp;nbsp;&lt;/SPAN&gt;thanks your help&amp;nbsp;&lt;SPAN&gt;, you sovle the first question&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; I want to see if someone could sort another question out&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 01:28:24 GMT</pubDate>
    <dc:creator>blueskyxyz</dc:creator>
    <dc:date>2022-06-22T01:28:24Z</dc:date>
    <item>
      <title>how to add submit with sas 9.4 chinese on windows system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819266#M323405</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. how to add submit with sas 9.4 chinese on windows system when &lt;SPAN&gt;right-clicking on sas code (*.sas)&lt;/SPAN&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;there are two default options(sas9.4 and sas9.4 utf8) when you do right mouse click as below.&lt;/P&gt;
&lt;P&gt;since the&amp;nbsp;sasv9.cfg uses u8 configration under the path&amp;nbsp;C:\Program Files\SASHome\SASFoundation\9.4, like this&amp;nbsp; -config "C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blueskyxyz_0-1655801742469.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72477i10DDCE4D88DD4ACE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blueskyxyz_0-1655801742469.png" alt="blueskyxyz_0-1655801742469.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. how modify the dos script to run sas xx.sas with the chinese&amp;nbsp;sasv9.cfg&lt;/P&gt;
&lt;P&gt;refence link :&lt;A href="https://sites.psu.edu/pridmc/running-sas-from-command-prompt-running-multiple-sas-jobs/" target="_blank"&gt;https://sites.psu.edu/pridmc/running-sas-from-command-prompt-running-multiple-sas-jobs/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From a DOS prompt, you can do this to run ‘programname.sas’:&lt;/P&gt;
&lt;PRE&gt;	sasjob programname.sas  with sasv9.cfg&lt;/PRE&gt;
&lt;P&gt;since there are two different encodings(utf8&amp;nbsp; &amp;amp; chinese) for datasets in different projects&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 09:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819266#M323405</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2022-06-21T09:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to add submit with sas 9.4 chinese on windows system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819267#M323406</link>
      <description>"%SASLOC%\sas.exe" -rsasuser -noicon -nosplash -nostatuswin -nologo -config "%sascfg%" -SYSIN "%PRJLOC%\T_1_01.SAS"&lt;BR /&gt;&lt;BR /&gt;this is too long for batch sumbit with sas 9.4 chinese, is there any efficient way?</description>
      <pubDate>Tue, 21 Jun 2022 09:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819267#M323406</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2022-06-21T09:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to add submit with sas 9.4 chinese on windows system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819290#M323412</link>
      <description>&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;Create regfile as below.&lt;/P&gt;
&lt;PRE&gt;Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SAS.Program.701\shell\BatchZh]
@="Batch Submit with SAS 9.4(Simplified Chinese)"

[HKEY_CLASSES_ROOT\SAS.Program.701\shell\BatchZh\command]
@="\"C:\\Program Files\\SASHome\\SASFoundation\\9.4\\sas.exe\" \"%1\" -nologo -config  \"C:\\Program Files\\SASHome\\SASFoundation\\9.4\\nls\\zh\\SASV9.CFG\""&lt;/PRE&gt;
&lt;P&gt;Then run and add to registry.&lt;/P&gt;
&lt;P&gt;Please check sas.exe path and config path before run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can get batch submit by sas chinese.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="japelin_1-1655808593951.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72480i4C21B96A626F1C65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="japelin_1-1655808593951.png" alt="japelin_1-1655808593951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.You can omit -sysin by writing .sas immediately after sas.exe like this.&lt;/P&gt;
&lt;PRE&gt;"%SASLOC%\sas.exe" "%PRJLOC%\T_1_01.SAS" -rsasuser -noicon -nosplash -nostatuswin -nologo -config "%sascfg%" 
&lt;/PRE&gt;
&lt;P&gt;I think&amp;nbsp; basically there is no more efficient way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 10:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819290#M323412</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-06-21T10:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to add submit with sas 9.4 chinese on windows system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819492#M323479</link>
      <description>&lt;P&gt;C:\Program Files\SASHome\SASFoundation\9.4\nls\zh\sasv9.cfg&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blueskyxyz_0-1655861188006.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72521i117CC038B4F59D42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blueskyxyz_0-1655861188006.png" alt="blueskyxyz_0-1655861188006.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226565"&gt;@japelin&lt;/a&gt;&amp;nbsp;Morning,&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;japelin,&amp;nbsp;&lt;/SPAN&gt;thanks your help&amp;nbsp;&lt;SPAN&gt;, you sovle the first question&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; I want to see if someone could sort another question out&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 01:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819492#M323479</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2022-06-22T01:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to add submit with sas 9.4 chinese on windows system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819504#M323485</link>
      <description>&lt;P&gt;There is a way to summarize the options with set, which is essentially the same, but may be more efficient if you have a number of programs to run (i.e., if you write many lines).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example.&lt;/P&gt;
&lt;PRE&gt;set sasoptions=-rsasuser -noicon -nosplash -nostatuswin -nologo
"%SASLOC%\sas.exe" "%PRJLOC%\T_1_01.SAS" -config "%sascfg%" %sasoptions%
"%SASLOC%\sas.exe" "%PRJLOC%\T_1_02.SAS" -config "%sascfg%" %sasoptions%
"%SASLOC%\sas.exe" "%PRJLOC%\T_1_03.SAS" -config "%sascfg%" %sasoptions%&lt;/PRE&gt;
&lt;P&gt;Why not just go ahead and put everything together from the exe path to the options using set?&lt;/P&gt;
&lt;PRE&gt;set sasexec="%SASLOC%\sas.exe" -rsasuser -noicon -nosplash -nostatuswin -nologo -config "%sascfg%"
%sasexec% -sysin "%PRJLOC%\T_1_01.SAS"
%sasexec% -sysin "%PRJLOC%\T_1_02.SAS"
%sasexec% -sysin "%PRJLOC%\T_1_03.SAS"&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jun 2022 02:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819504#M323485</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-06-22T02:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to add submit with sas 9.4 chinese on windows system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819513#M323489</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blueskyxyz_0-1655864470936.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72525i7CF9B8D2332F4AEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blueskyxyz_0-1655864470936.png" alt="blueskyxyz_0-1655864470936.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;1.use the value of batch command,&amp;nbsp; copy them and create *.bat file, put this file under c:\windows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blueskyxyz_1-1655864617329.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72526i71AED964754A7DC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blueskyxyz_1-1655864617329.png" alt="blueskyxyz_1-1655864617329.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. run the code , like sasu8 xx.sas under the path of sas program&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blueskyxyz_4-1655864835024.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72529iBA0E8EF3377FE8DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="blueskyxyz_4-1655864835024.png" alt="blueskyxyz_4-1655864835024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 02:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819513#M323489</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2022-06-22T02:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to add submit with sas 9.4 chinese on windows system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819522#M323495</link>
      <description>&lt;P&gt;C:\Windows is the system folder, so you should not put user-created .bat.&lt;BR /&gt;If such an operational rule is set, it is unavoidable, but if it is a personal arrangement, I recommend using under %userprofile% ,for example, documents, My SAS Files, %appdata% or created folder, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 03:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819522#M323495</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-06-22T03:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to add submit with sas 9.4 chinese on windows system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819866#M323604</link>
      <description>thanks @ japelin for your remind, I will try your recommendation and put it in the personal folder</description>
      <pubDate>Thu, 23 Jun 2022 01:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-add-submit-with-sas-9-4-chinese-on-windows-system/m-p/819866#M323604</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2022-06-23T01:24:30Z</dc:date>
    </item>
  </channel>
</rss>

