<?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: Exporting a style from one platform to another in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/488124#M72015</link>
    <description>&lt;P&gt;Thanks for your detailed response ballardw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You've obviously come across a similar issue to me, and I have in fact found the culprit which was the change in behaviour between SAS versions (see my reply above yours).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's all good knowledge to keep though. Your answer would have gone quite some way to helping me had I not stumbled across one of the very specific warnings &amp;amp; resolutions on the interwebs.&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;Cheers&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 08:15:54 GMT</pubDate>
    <dc:creator>_Dan_</dc:creator>
    <dc:date>2018-08-20T08:15:54Z</dc:date>
    <item>
      <title>Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487700#M71983</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm migrating some SAS code between two distinct SAS platforms. There's a section where I need a style for an ODS output. I expect this style will either have been hard coded or imported from a css file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming I can't find either the original style code or css, is there an export I can use that'll produce a file&amp;nbsp;for me that I can import into the&amp;nbsp;target platform?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 10:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487700#M71983</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-08-17T10:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487702#M71984</link>
      <description>&lt;P&gt;Do not permeate a problem, fix it NOW. If you can't find the code to create the style, recreate it according to what you need in the style.&lt;/P&gt;
&lt;P&gt;And let this be an object lesson: anything in SAS that does not have the creating code attached is worth shit. Styles, formats, macros, ....&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 10:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487702#M71984</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-17T10:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487707#M71985</link>
      <description>&lt;P&gt;Well, I 'run' the new platform, I've been asked to migrate people off an older platform onto this one. I'm taking it step by step, macros, formats etc as and when we come across them. The original code works on the old platform, so, like the macros, formats, all I need/want is a way to export the style.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that possible or not? I am going to assume the worst that there's either no original style code, no original css, and the analysts running the code had inherited it without knowing what the exact style information is.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 10:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487707#M71985</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-08-17T10:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487709#M71986</link>
      <description>&lt;P&gt;This is from the documentation of the template procedure:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
source styles.default;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should be able to use that as a blueprint for retrieving the code for a given style.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 10:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487709#M71986</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-17T10:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487712#M71987</link>
      <description>&lt;P&gt;You would need to be more specific.&amp;nbsp; Is is a SAS style which is done via Template language, if so you then you can simply find your style:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/techsup/notes/v8/36/900.html" target="_blank"&gt;http://support.sas.com/techsup/notes/v8/36/900.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then list the code used.&amp;nbsp; Move this code used over to the new system and run it.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/23/442.html" target="_blank"&gt;http://support.sas.com/kb/23/442.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is a css then find that file on your network and copy the file over.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 11:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487712#M71987</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-17T11:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487713#M71988</link>
      <description>&lt;P&gt;Thanks for that, and it did work - almost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A curve ball I've just found is that the Style is defined within their code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template; 
define style TheStyleName; 
parent = Styles.fancyprinter;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;However, when referring to the style...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Could not locate style reference 'TheStyleName.colors("docfg")'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As this reference isn't explicitly set through the proc template, could it be that there's&amp;nbsp;&lt;U&gt;another&lt;/U&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;Style with the same name that does contain those colours?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 11:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487713#M71988</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-08-17T11:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487714#M71989</link>
      <description>&lt;P&gt;Great, looks like that'll cover the extracting of the style, but if you check out my reply I've just written, do you have any ideas why the style isn't "complete" insofar as the colours are missing?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 11:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487714#M71989</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-08-17T11:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487719#M71990</link>
      <description>&lt;P&gt;I've just read this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/33/356.html" target="_blank"&gt;http://support.sas.com/kb/33/356.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which completely explains the issue.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The workaround for the code above is to use the FROM option with the style element name"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did so and I am left with a single remaining warning, whereas a previously had about thirty of them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the answer is to change this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;style colors&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;style colors FROM COLORS&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 17 Aug 2018 11:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487719#M71990</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-08-17T11:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487799#M71996</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177945"&gt;@_Dan_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm migrating some SAS code between two distinct SAS platforms. There's a section where I need a style for an ODS output. I expect this style will either have been hard coded or imported from a css file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming I can't find either the original style code or css, is there an export I can use that'll produce a file&amp;nbsp;for me that I can import into the&amp;nbsp;target platform?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you have access to the style, as in able to use Style=mystyle in ODS destinations, then Proc Template can derive the original source with something like this referencing your style: (replace styles.meadow with your style).&lt;/P&gt;
&lt;PRE&gt;proc template;
   source styles.meadow;
run;&lt;/PRE&gt;
&lt;P&gt;The listing of the code needed to generate the style will appear in the log, or use proc printto to direct the output to a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Warning:&lt;/STRONG&gt; If there is a PARENT style listed (most will reference Styles.Normal) you will also need to generate that one's source code (repeat until you have Styles.Normal as the parent AND get the definition of Styles.Normal) as variations between releases do not mean that the parent style will remain unchanged (or even exist) in another release. And if it exists the modification that your customization is based on may not work as the parent's elements may differ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran into the parent changing in the past and my code for a custom version based on the "new" parent did not generate any errors but the output did not match expectations because the parent changed how some base elements were defined and my custom style no longer had those elements to modify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To recreate things you would likely want to make sure that you do not overwrite any of the parent styles in the new installation but create new named versions and change the parent references. Or merge the code by hand. With literally hundreds of lines of code in some of the styles that would be my last resort.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/487799#M71996</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-17T14:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a style from one platform to another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/488124#M72015</link>
      <description>&lt;P&gt;Thanks for your detailed response ballardw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You've obviously come across a similar issue to me, and I have in fact found the culprit which was the change in behaviour between SAS versions (see my reply above yours).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's all good knowledge to keep though. Your answer would have gone quite some way to helping me had I not stumbled across one of the very specific warnings &amp;amp; resolutions on the interwebs.&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;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 08:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-a-style-from-one-platform-to-another/m-p/488124#M72015</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-08-20T08:15:54Z</dc:date>
    </item>
  </channel>
</rss>

