<?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: Custom Style with PDF and Stored Process in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/570014#M11896</link>
    <description>&lt;P&gt;Hi: I don't think you can just copy the template to the server unless your system is the same as the server system. &lt;A href="http://support.sas.com/kb/24/281.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/24/281.html&lt;/A&gt; So for example, you can't copy a Windows created template to Unix server. You need to have someone run the program on the server.&lt;BR /&gt;&lt;BR /&gt;On my system, the EG templates are down on my C: drive here:&lt;BR /&gt;C:\Program Files (x86)\SASHome\x86\SASEnterpriseGuide\7.1\Styles&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But your location may be different. And, the Workspace Server and Stored Process Server don't have EG, so they likely don't have a folder where you can stash a template. The Lev1 SAS Environment folder is a location designed to hold things like formats, macro programs, code snippets for %INCLUDE and other things (like style templates or tagset templates) that you may need to use in a Stored Process.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 23:04:30 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-06-28T23:04:30Z</dc:date>
    <item>
      <title>Custom Style with PDF and Stored Process</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/569825#M11871</link>
      <description>&lt;P&gt;I'm trying to use a custom style with a PDF that is written to a Server path by a stored process.&amp;nbsp; The PDF is created but the style does not take effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods pdf (id=VCU_Report_Printing) style=VCU_Report_Printing file='serverpath/test5.pdf' pdftoc=3;&lt;/P&gt;
&lt;P&gt;options nobyline nodate;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;/*proc report*/&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;ods pdf(id=VCU_Report_Printing) close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Custom Style with PDF and Stored Process&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/569825#M11871</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-06-28T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Style with PDF and Stored Process</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/569835#M11874</link>
      <description>&lt;P&gt;It turns out that Enterprise Guide is not finding my style.&amp;nbsp; My custom style is setup as my default for general output.&amp;nbsp; I have my own local custom style.&amp;nbsp; Do I need to place it in a particular location to reference it in an ODS call?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/569835#M11874</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-06-28T14:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Style with PDF and Stored Process</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/569870#M11877</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Enterprise Guide has a location on your C: drive for your style. Unfortunately, the stored process and the Workspace server or Stored Process server probably are NOT able to read the style on your C: drive. The style template has to be accessible to the server that is running the code because the style elements will be added up on the server, for PDF, not down on your machine when you open the PDF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This older handout from a NESUG presentation talked about how to store a customized template in the LEV1 folder used by the servers for a stored process. Here's the handout: &lt;A href="https://support.sas.com/rnd/papers/regional08/SP_Template.pdf" target="_blank"&gt;https://support.sas.com/rnd/papers/regional08/SP_Template.pdf&lt;/A&gt; -- the paper was specifically talking about changing a tagset template, but could just as well have been changing a style template. In this presentation, I didn't need a custom style. but the concept is the same. You can deal with a custom style by getting permission from your SAS Administrator to run a job from a server that has write access to the Lev1 folder and you'll need to make sure your custom style template is written up there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Then, as shown in the handout, you'll need to alter your stored process code (in the handout it shows using the tagset template in _odsdest setting, but instead, you'd do your override for _odsstyle %LET statement:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;libname lb_srv "&amp;lt;path to Lev1 folder where style template was created&amp;gt;";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;** name of item store is lb_srv.&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;templat&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;, as an example;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods path(prepend) lb_srv.templat(read);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#FF00FF"&gt;%let _odsstyle =&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;** new style that lives in above path&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let _odsdest = pdf;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%stpbegin;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;*** rest of code;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%stpend;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods path(remove) lb_srv.templat(read);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using the EG Stored Process Wizard, you might have to turn off the automatic inclusion of the %STPBEGIN/%STPEND because you need to be sure that your libname statement for the template store and the ODS PATH(PREPEND) and the %LET statements all happen BEFORE the %STPBEGIN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this gets you pointed in the right direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/569870#M11877</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-28T15:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Style with PDF and Stored Process</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/569970#M11893</link>
      <description>&lt;P&gt;Cynthia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To copy the template to the server:&amp;nbsp; Which local folder does Enterprise Guide create custom style manager templates in?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 20:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/569970#M11893</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-06-28T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Style with PDF and Stored Process</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/570014#M11896</link>
      <description>&lt;P&gt;Hi: I don't think you can just copy the template to the server unless your system is the same as the server system. &lt;A href="http://support.sas.com/kb/24/281.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/24/281.html&lt;/A&gt; So for example, you can't copy a Windows created template to Unix server. You need to have someone run the program on the server.&lt;BR /&gt;&lt;BR /&gt;On my system, the EG templates are down on my C: drive here:&lt;BR /&gt;C:\Program Files (x86)\SASHome\x86\SASEnterpriseGuide\7.1\Styles&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But your location may be different. And, the Workspace Server and Stored Process Server don't have EG, so they likely don't have a folder where you can stash a template. The Lev1 SAS Environment folder is a location designed to hold things like formats, macro programs, code snippets for %INCLUDE and other things (like style templates or tagset templates) that you may need to use in a Stored Process.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 23:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/570014#M11896</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-28T23:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Style with PDF and Stored Process</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/572053#M12275</link>
      <description>&lt;P&gt;Where do I place the .css / template file on the server to call it as a .css or template file?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/572053#M12275</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2019-07-09T14:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Style with PDF and Stored Process</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/572062#M12276</link>
      <description>Hi: In the NESUG paper I posted above, I put it into the Lev1 folder where the formats and macro directories are also located. Your SAS Admin should be able to direct you to that location.&lt;BR /&gt;&lt;BR /&gt;Otherwise, you have to find a network location where the CSS can be written 1 time and accessed by all the servers that will run the stored process.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 09 Jul 2019 14:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Style-with-PDF-and-Stored-Process/m-p/572062#M12276</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-07-09T14:11:29Z</dc:date>
    </item>
  </channel>
</rss>

