<?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 run multiple sas programs from one program? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752396#M29771</link>
    <description>You can ignore it but you can also create a control program with %include that will call the other programs in the order you want to run them. &lt;BR /&gt;</description>
    <pubDate>Tue, 06 Jul 2021 19:48:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-07-06T19:48:50Z</dc:date>
    <item>
      <title>How to run multiple sas programs from one program?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752390#M29768</link>
      <description>&lt;P&gt;Hi, I have a bunch of SAS programs and I wanted to run them once in a single program. I used print1.sas, print2.sas, and print3.sas as an example. They just print out a very simple data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a test.sh file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/usr/bin/sh&lt;/P&gt;&lt;P&gt;sas print1.sas &amp;amp;&lt;/P&gt;&lt;P&gt;sas print2.sas &amp;amp;&lt;/P&gt;&lt;P&gt;sas print3.sas &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the command: ksh test.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked. I get a print1.log, print1.lst, print2.log, print2.lst, etc. Which is exactly what I needed. However, I keep getting the following warning message in 2 out of the 3 files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Unable to copy SASUSER registry to WORK registry. Because of this, you will not see registry customizations during this session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions is:&lt;/P&gt;&lt;P&gt;1. SASUSER registry can only be used once?&lt;/P&gt;&lt;P&gt;2. Is this WARNING serious or its something harmless and can be ignored?&lt;/P&gt;&lt;P&gt;3. Is there something wrong with the test.sh file or what is the proper way of running a program like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 19:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752390#M29768</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2021-07-06T19:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple sas programs from one program?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752393#M29769</link>
      <description>&lt;P&gt;This is a natural consequence of running SAS sessions in parallel.&lt;/P&gt;
&lt;P&gt;Since the registry is mainly for keeping settings of the native Display Manager from one session to the next, you can safely ignore the WARNING.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 19:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752393#M29769</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-06T19:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple sas programs from one program?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752395#M29770</link>
      <description>&lt;P&gt;Just tell SAS that you don't want it to allow you to write to the SASUSER library and you will not get those notes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add the -rsasuser option on the command line.&lt;/P&gt;
&lt;PRE&gt;sas -rsasuser print1.sas &amp;amp;&lt;/PRE&gt;
&lt;P&gt;Or include it in your personal config file.&lt;/P&gt;
&lt;PRE&gt;&amp;gt;grep sasuser ~/sasv9.cfg 
-rsasuser
&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Jul 2021 19:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752395#M29770</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-06T19:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple sas programs from one program?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752396#M29771</link>
      <description>You can ignore it but you can also create a control program with %include that will call the other programs in the order you want to run them. &lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jul 2021 19:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752396#M29771</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-06T19:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple sas programs from one program?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752397#M29772</link>
      <description>&lt;P&gt;Do you need to run your programs in parallel? If the processing doesn't take long then running them one after the other is easier using the %INCLUDE statement.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 19:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752397#M29772</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-07-06T19:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple sas programs from one program?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752443#M29773</link>
      <description>Hi, I tried the %include method. It saves all the output file into one single file. For example, if I created test.sas with %include statements, instead of the test.sh, and use the test.sas, all the print*.lst will be gone and they will be saved as test.lst instead. I need the output to be named after the original SAS programs. That's why I am using the test.sh. Of course, unless there's a way getting around this? I'm new to this so I could be wrong, hehe.</description>
      <pubDate>Tue, 06 Jul 2021 21:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752443#M29773</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2021-07-06T21:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple sas programs from one program?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752445#M29774</link>
      <description>&lt;P&gt;You could use PROC PRINTTO to direct SAS output to whatever file you want from within each program. If you want more fancy output, like HTML or PDF output rather than just text then controlling output with ODS is a better option.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 21:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-run-multiple-sas-programs-from-one-program/m-p/752445#M29774</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-07-06T21:48:51Z</dc:date>
    </item>
  </channel>
</rss>

