<?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: SAS question from scenario 4 in SAS certified specialist prep guide in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763900#M127</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;If you remember, in the Programming 1 class, we had students write their reports and ODS output into their output subfolder under the EPG1V2 or the EPG194 main folder. In this case, the absolute path would have been something like:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file='&lt;FONT color="#0000FF"&gt;/home/&amp;lt;yourUserID&amp;gt;&lt;/FONT&gt;&lt;FONT color="#33CCCC"&gt;/EPG1V2/output&lt;/FONT&gt;/&lt;FONT color="#339966"&gt;myreport.pdf&lt;/FONT&gt;';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;... more code...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;or you can write to your WORK folder, but that is harder to find in order to download the file after it's created. Or you can write to your /home folder like this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file='&lt;FONT color="#0000FF"&gt;/home/&amp;lt;yourUserID&amp;gt;&lt;/FONT&gt;&lt;FONT color="#008000"&gt;/myreport.pdf&lt;/FONT&gt;';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;... more code...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file='&lt;FONT size="5" color="#0000FF"&gt;~&lt;/FONT&gt;/&lt;FONT color="#008000"&gt;myreport.pdf&lt;/FONT&gt;';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;... more code...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Remember that on the SAS OnDemand server the tilde (&lt;FONT face="courier new,courier" size="5" color="#0000FF"&gt;&lt;STRONG&gt;~&lt;/STRONG&gt;&lt;/FONT&gt;) is a placeholder for your home folder. If you do not use an absolute path or the tilde in your path, then SAS tries to write to a server folder where you do not have write access so you'll generate an error message with a relative file reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2021 16:46:49 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2021-08-25T16:46:49Z</dc:date>
    <item>
      <title>SAS question from scenario 4 in SAS certified specialist prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763775#M124</link>
      <description>&lt;P&gt;I am using SAS studio, fully online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Scenario 4, to generate a pdf, I came up with this code which agrees with the solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data = cert.laguardia out = work.laguardia;&lt;BR /&gt;by dest;&lt;BR /&gt;run;&lt;BR /&gt;ods html close;&lt;BR /&gt;ods pdf file = 'LGA Airport' style=FestivalPrinter;&lt;BR /&gt;proc print data=work.laguardia;&lt;BR /&gt;title 'Laguardia Flights';&lt;BR /&gt;by dest;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I cannot seem to actually create the pdf and get this message in the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/LGA Airport.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I view pdf output?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 03:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763775#M124</guid>
      <dc:creator>aaronbailey79</dc:creator>
      <dc:date>2021-08-25T03:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS question from scenario 4 in SAS certified specialist prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763777#M125</link>
      <description>&lt;P&gt;I was able to run it and get pdf file in SAS Studio in SAS on demand for Academics environment.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;How about changing the ods pdf as follows&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file = 'LGA Airport.pdf' style=FestivalPrinter;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file = "%sysfunc(pathname(work))\LGA Airport.pdf" style=FestivalPrinter;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, one point is to add the extension ".pdf".&lt;/P&gt;
&lt;P&gt;If the problem is that you don't have access privileges, you can try to create it in the work library as in the latter case.&lt;/P&gt;
&lt;P&gt;If you can't create it with this, then you have another problem.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 03:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763777#M125</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-08-25T03:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS question from scenario 4 in SAS certified specialist prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763789#M126</link>
      <description>&lt;P&gt;Do not use just a filename in the ODS statement, use a fully qualified, absolute path.&lt;/P&gt;
&lt;P&gt;The easiest way to do this is to prepend your home directory shortcut:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file = '~/LGA_Airport.pdf' style=FestivalPrinter;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you do not specify an absolute path, the file will be created in the current working directory of the SAS process, which is the application server root in SAS BI installations. And you do not have write permission there.&lt;/P&gt;
&lt;P&gt;The newly created file will automatically appear in the Home folder in your navigation pane.&lt;/P&gt;
&lt;P&gt;Out of long experience, I also recommend to not have blanks in filenames; operating systems see a blank as a word separator, and blanks make handling files from the commandline harder.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 07:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763789#M126</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-25T07:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS question from scenario 4 in SAS certified specialist prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763900#M127</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;If you remember, in the Programming 1 class, we had students write their reports and ODS output into their output subfolder under the EPG1V2 or the EPG194 main folder. In this case, the absolute path would have been something like:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file='&lt;FONT color="#0000FF"&gt;/home/&amp;lt;yourUserID&amp;gt;&lt;/FONT&gt;&lt;FONT color="#33CCCC"&gt;/EPG1V2/output&lt;/FONT&gt;/&lt;FONT color="#339966"&gt;myreport.pdf&lt;/FONT&gt;';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;... more code...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;or you can write to your WORK folder, but that is harder to find in order to download the file after it's created. Or you can write to your /home folder like this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file='&lt;FONT color="#0000FF"&gt;/home/&amp;lt;yourUserID&amp;gt;&lt;/FONT&gt;&lt;FONT color="#008000"&gt;/myreport.pdf&lt;/FONT&gt;';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;... more code...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf file='&lt;FONT size="5" color="#0000FF"&gt;~&lt;/FONT&gt;/&lt;FONT color="#008000"&gt;myreport.pdf&lt;/FONT&gt;';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;... more code...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Remember that on the SAS OnDemand server the tilde (&lt;FONT face="courier new,courier" size="5" color="#0000FF"&gt;&lt;STRONG&gt;~&lt;/STRONG&gt;&lt;/FONT&gt;) is a placeholder for your home folder. If you do not use an absolute path or the tilde in your path, then SAS tries to write to a server folder where you do not have write access so you'll generate an error message with a relative file reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 16:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/763900#M127</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-08-25T16:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS question from scenario 4 in SAS certified specialist prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/764308#M128</link>
      <description>Thank you! It worked like a charm.&lt;BR /&gt;&lt;BR /&gt;I know it is good practice to not include spaces in file names, but that is&lt;BR /&gt;the filename that the question specified. Your solution also worked with a&lt;BR /&gt;space instead of _.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/SAS-question-from-scenario-4-in-SAS-certified-specialist-prep/m-p/764308#M128</guid>
      <dc:creator>aaronbailey79</dc:creator>
      <dc:date>2021-08-26T19:12:11Z</dc:date>
    </item>
  </channel>
</rss>

