<?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: newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383790#M3153</link>
    <description>&lt;P&gt;The logs are only available in SAS-STUDIO. Even though I gave a path for the logs, it doesn't honor it.&lt;/P&gt;
&lt;P&gt;Q: Where does SAS-Studio put the logs (besides in a web page) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14172i8B18C044CA403444/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;ls -&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 483px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14173iC5A7DB581C2C5E11/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2017 16:04:26 GMT</pubDate>
    <dc:creator>cellurl</dc:creator>
    <dc:date>2017-07-28T16:04:26Z</dc:date>
    <item>
      <title>newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383445#M3148</link>
      <description>&lt;P&gt;File: my.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;x "sas9 /mktg/mrq/jpruett/juanita.sas &amp;amp;"; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File: juanita.sas&lt;/P&gt;
&lt;P&gt;libname here '/mktg/mrq/jpruett/.'; run;&lt;/P&gt;
&lt;P&gt;ods csv file="/mktg/mrq/jpruett/ods_csv.csv";&lt;BR /&gt;proc print data=here.dom_rev;&lt;BR /&gt;run;&lt;BR /&gt;ods csv close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test 1: From Solaris:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mktpricing:/mrq/jpruett % sas9 my.sas&lt;BR /&gt;mktpricing:/mrq/jpruett % cat *.csv&lt;BR /&gt;"Obs","CUST_NBR","rev"&lt;BR /&gt;"1",378510490,"."&lt;BR /&gt;"2",522856401,"."&lt;BR /&gt;"3",525331199,"."&lt;BR /&gt;"4",684611763,"."&lt;BR /&gt;"5",826893206,"."&lt;BR /&gt;"6",836789067,"."&lt;BR /&gt;"7",864120008,"."&lt;BR /&gt;"8",865098006,"."&lt;BR /&gt;"9",902191429,"."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test 2: From SAS Studio.&amp;nbsp;&amp;nbsp; I click to run my.sas&lt;/P&gt;
&lt;P&gt;Then in Unix I do the following:&lt;/P&gt;
&lt;P&gt;mktpricing:/mrq/jpruett % cat *.csv&lt;BR /&gt;"Obs","CUST_NBR","rev"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are no rows!,&amp;nbsp;just header... ;-(&amp;nbsp;&amp;nbsp; Any ideas???&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 19:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383445#M3148</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2017-07-27T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383561#M3149</link>
      <description>&lt;P&gt;Maxim 2: Read the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS batch run will leave a corresponding log. Inspect the log from the sas batch you called with the X statement (juanita.log).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 06:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383561#M3149</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-28T06:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383782#M3152</link>
      <description>&lt;P&gt;where does sas studio put logs called from "X " &amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dont see it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for helping! I am dumbfounded on this one.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 15:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383782#M3152</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2017-07-28T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383790#M3153</link>
      <description>&lt;P&gt;The logs are only available in SAS-STUDIO. Even though I gave a path for the logs, it doesn't honor it.&lt;/P&gt;
&lt;P&gt;Q: Where does SAS-Studio put the logs (besides in a web page) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14172i8B18C044CA403444/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;ls -&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 483px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14173iC5A7DB581C2C5E11/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 16:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383790#M3153</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2017-07-28T16:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383798#M3156</link>
      <description>&lt;P&gt;I am trying to create excel and email it to me.&lt;/P&gt;
&lt;P&gt;My approach may not work.&lt;/P&gt;
&lt;P&gt;Q: Is there another way to do it? &amp;nbsp; Below says "ODS will ruin my life". What should I do instead in SAS-STUDIO? &amp;nbsp;&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;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14175i06B0815949466A11/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 16:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383798#M3156</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2017-07-28T16:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383809#M3158</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30022"&gt;@cellurl&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;where does sas studio put logs called from "X " &amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dont see it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for helping! I am dumbfounded on this one.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;These usually are put in the current working directory of the SAS workspace server, from which the X is executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding a defined path for the log with -log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also use the filename pipe method for calling external commands:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "sas /path/program.sas -log /path/program.log 2&amp;gt;&amp;amp;1";

data _null_;
infile oscmd;
input;
put _infile_;
run;

filename oscmd clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All messages from the OS will end up in the SAS log, so you can see if the batch run fails completely.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 17:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383809#M3158</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-28T17:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383861#M3161</link>
      <description>&lt;P&gt;no joy.&lt;/P&gt;
&lt;P&gt;To recall:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;----In Unix it works great. I get csv file emailed to me aok--------&lt;/P&gt;
&lt;P&gt;sas9 my.sas&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;----In Sas studio, I click on RUN for my.sas and it runs, but the ODS fails and I get no email. I don't see any log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think sas studio doesnt allow changing path of logs, so I don't know how ODS fails.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname out xlsx '/mktg/mrq/jpruett/file.xlsx'; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but that errored saying: &amp;nbsp;"XLSX" engine not avail or something like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383861#M3161</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2017-07-28T18:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: newbie to SAS Studio.   ODS sometimes give rows, sometimes just header and no rows.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383877#M3163</link>
      <description>&lt;P&gt;Mark closed please. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I no longer care about this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Explaination:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to run 10 minute queries. My impression was that SasStudio was a normal webpage which timed out in 2 minutes (most do).&lt;/P&gt;
&lt;P&gt;But people tell me it isn't like that, and it will run forever and not hang.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I did a 10 minute test and indeed it ran for 10 minutes and then finished gracefully. (Its nice to watch the bottom left corner to see progress, so I know it isn't hanging...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I no longer need the "X " command.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 19:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/newbie-to-SAS-Studio-ODS-sometimes-give-rows-sometimes-just/m-p/383877#M3163</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2017-07-28T19:21:23Z</dc:date>
    </item>
  </channel>
</rss>

