<?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 .lst SAS error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/834856#M330020</link>
    <description>&lt;P&gt;After deployed SAS code to deployment directory the .lst file is created. I need to run this code paraller with different parameters.&lt;/P&gt;&lt;P&gt;When I run this code with different paramaters I received an error ".lts file is in use"&lt;/P&gt;&lt;P&gt;Is there is a way to run the same job paraller with different parameters without error ?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 15:00:21 GMT</pubDate>
    <dc:creator>newuser2022</dc:creator>
    <dc:date>2022-09-23T15:00:21Z</dc:date>
    <item>
      <title>.lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/834856#M330020</link>
      <description>&lt;P&gt;After deployed SAS code to deployment directory the .lst file is created. I need to run this code paraller with different parameters.&lt;/P&gt;&lt;P&gt;When I run this code with different paramaters I received an error ".lts file is in use"&lt;/P&gt;&lt;P&gt;Is there is a way to run the same job paraller with different parameters without error ?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 15:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/834856#M330020</guid>
      <dc:creator>newuser2022</dc:creator>
      <dc:date>2022-09-23T15:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: .lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/834857#M330021</link>
      <description>&lt;P&gt;If you are changing "parameters" to run the code again, then also change the .lst file to have a different name for each run.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 15:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/834857#M330021</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-23T15:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: .lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/834858#M330022</link>
      <description>&lt;P&gt;No idea what a deployment directory is, but you can tell SAS what name to use for the LOG and LST file by using the LOG and PRINT options on the command line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas myfile.sas -log myfile_v1.log -print myfile_v1.lst
sas myfile.sas -log myfile_v2.log -print myfile_v2.lst&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Sep 2022 15:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/834858#M330022</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-23T15:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: .lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835120#M330136</link>
      <description>The thing is that I used different parameters. when I run paraller following codes&lt;BR /&gt;&lt;BR /&gt;./ my_code X&amp;gt; /my_code_x&lt;BR /&gt;./ my_code Y&amp;gt; /my_code_y&lt;BR /&gt;./ my_code Y&amp;gt; /my_code_z&lt;BR /&gt;&lt;BR /&gt;only the first code is completed. The next two failed due to my_code.lst is in use.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2022 08:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835120#M330136</guid>
      <dc:creator>newuser2022</dc:creator>
      <dc:date>2022-09-26T08:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: .lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835126#M330140</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/433724"&gt;@newuser2022&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;The thing is that I used different parameters. when I run paraller following codes&lt;BR /&gt;&lt;BR /&gt;./ my_code X&amp;gt; /my_code_x&lt;BR /&gt;./ my_code Y&amp;gt; /my_code_y&lt;BR /&gt;./ my_code Y&amp;gt; /my_code_z&lt;BR /&gt;&lt;BR /&gt;only the first code is completed. The next two failed due to my_code.lst is in use.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As I stated, and as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; has stated, you have to change the name of the .LST file for each parallel run&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 10:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835126#M330140</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-26T10:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: .lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835128#M330141</link>
      <description>But, where should I change it? I have one code only parameter are different. The output is different for each run like below&lt;BR /&gt;&lt;BR /&gt;&amp;gt;/my_code_x&lt;BR /&gt;&amp;gt; /my_code_y&lt;BR /&gt;&amp;gt; /my_code_z</description>
      <pubDate>Mon, 26 Sep 2022 10:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835128#M330141</guid>
      <dc:creator>newuser2022</dc:creator>
      <dc:date>2022-09-26T10:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: .lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835129#M330142</link>
      <description>&lt;P&gt;However you call these parallel runs, that's where you would change it. How are you starting these parallel runs? Please be specific and detailed. And please take a look at the reply from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 10:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835129#M330142</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-26T10:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: .lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835234#M330209</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/433724"&gt;@newuser2022&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;The thing is that I used different parameters. when I run paraller following codes&lt;BR /&gt;&lt;BR /&gt;./ my_code X&amp;gt; /my_code_x&lt;BR /&gt;./ my_code Y&amp;gt; /my_code_y&lt;BR /&gt;./ my_code Y&amp;gt; /my_code_z&lt;BR /&gt;&lt;BR /&gt;only the first code is completed. The next two failed due to my_code.lst is in use.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That does not look anything at all like a request to run SAS.&lt;/P&gt;
&lt;P&gt;Are you saying you have some shell script name my_code that you are running that takes a single argument.&amp;nbsp; If you want more help show the details of that code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One simple way to make SAS generate different filenames is to just run it starting in different directories.&amp;nbsp; Byt default SAS will create the .log and .lst files in the current working directory. Even when the SAS program you are running is coming from a different directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this program will run three SAS jobs in the background at the same time.&amp;nbsp; They will all write log file named myfile.log and output file named myfile.lst , but each will be in a different directory.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cd /mydir/runA
sas /mydir/myfile.sas -sysparm A &amp;amp;
cd /mydir/runB
sas /mydir/myfile.sas -sysparm B &amp;amp;
cd /mydir/runC
sas /mydir/myfile.sas -sysparm C &amp;amp;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 17:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835234#M330209</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-26T17:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: .lst SAS error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835258#M330225</link>
      <description>&lt;P&gt;This is the classic error you get with a SAS program that produces printed output but then you run it in batch mode without specifying where the LST output file gets written. If you are not interested in the printed output, add this to the top of your program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will stop the LST files being written.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/lst-SAS-error/m-p/835258#M330225</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-09-26T19:18:22Z</dc:date>
    </item>
  </channel>
</rss>

