<?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 Is it possible to name html output files with by values?  (two sets) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Is-it-possible-to-name-html-output-files-with-by-values-two-sets/m-p/627668#M23798</link>
    <description>&lt;P&gt;Hello SAS folks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m looking for some help in naming html output files with by values (actually two sets of by values).&amp;nbsp; I'm only finding reference to numbers added to a base name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that it can now be done in ODS graphics with imagename= and was hoping for something similar for html. Anchor= gets links in the table of contents, but only for a single bygroup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example below, the body files come out as&lt;/P&gt;
&lt;P&gt;shoes-body_.htm&lt;/P&gt;
&lt;P&gt;shoes-body_1.htm&lt;/P&gt;
&lt;P&gt;--&amp;gt; shoes-body_46.htm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want is&lt;/P&gt;
&lt;P&gt;shoes-body_Africa_Addis Ababa.htm&lt;/P&gt;
&lt;P&gt;shoes-body_Africa_Algiers.htm&lt;/P&gt;
&lt;P&gt;--&amp;gt; shoes-body_Western Europe_Rome.htm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(No spaces or a substituted character for them would be fine, if not even better)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using 9.4 TS1M6 as remote login to a virtual machine with Windows Server 2016.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help you can give me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wendy T.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods _all_ close ;

ods html body = "shoes-body_.htm" 
       contents = "shoes-contents.htm"
       frame = "shoes-frame.htm"
       anchor = "#byval(region)" 
       newfile = bygroup ;

title    "SAS Dataset Shoes" ;
title2  "for #byval(Region) and #byval(subsidiary) "  ;

data shoes ; set sashelp.shoes ;
 proc sort ; by region subsidiary ;
run ;

proc print data=shoes ;
by region subsidiary ;
 footnote  "Each region in a separate file" ;
 footnote2 "Can the body files be named with byvalues?" ;
run;

ods html close;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 20:59:38 GMT</pubDate>
    <dc:creator>WendyT</dc:creator>
    <dc:date>2020-02-26T20:59:38Z</dc:date>
    <item>
      <title>Is it possible to name html output files with by values?  (two sets)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Is-it-possible-to-name-html-output-files-with-by-values-two-sets/m-p/627668#M23798</link>
      <description>&lt;P&gt;Hello SAS folks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m looking for some help in naming html output files with by values (actually two sets of by values).&amp;nbsp; I'm only finding reference to numbers added to a base name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that it can now be done in ODS graphics with imagename= and was hoping for something similar for html. Anchor= gets links in the table of contents, but only for a single bygroup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example below, the body files come out as&lt;/P&gt;
&lt;P&gt;shoes-body_.htm&lt;/P&gt;
&lt;P&gt;shoes-body_1.htm&lt;/P&gt;
&lt;P&gt;--&amp;gt; shoes-body_46.htm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want is&lt;/P&gt;
&lt;P&gt;shoes-body_Africa_Addis Ababa.htm&lt;/P&gt;
&lt;P&gt;shoes-body_Africa_Algiers.htm&lt;/P&gt;
&lt;P&gt;--&amp;gt; shoes-body_Western Europe_Rome.htm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(No spaces or a substituted character for them would be fine, if not even better)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using 9.4 TS1M6 as remote login to a virtual machine with Windows Server 2016.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help you can give me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wendy T.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods _all_ close ;

ods html body = "shoes-body_.htm" 
       contents = "shoes-contents.htm"
       frame = "shoes-frame.htm"
       anchor = "#byval(region)" 
       newfile = bygroup ;

title    "SAS Dataset Shoes" ;
title2  "for #byval(Region) and #byval(subsidiary) "  ;

data shoes ; set sashelp.shoes ;
 proc sort ; by region subsidiary ;
run ;

proc print data=shoes ;
by region subsidiary ;
 footnote  "Each region in a separate file" ;
 footnote2 "Can the body files be named with byvalues?" ;
run;

ods html close;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 20:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Is-it-possible-to-name-html-output-files-with-by-values-two-sets/m-p/627668#M23798</guid>
      <dc:creator>WendyT</dc:creator>
      <dc:date>2020-02-26T20:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to name html output files with by values?  (two sets)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Is-it-possible-to-name-html-output-files-with-by-values-two-sets/m-p/627672#M23799</link>
      <description>&lt;P&gt;You could certainly write a macro loop to do this, but I'm not sure its worth the effort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thinking out of the box, why not have everything in one .html file with the title above the table indicating the value of the BY variable? You could even have, in the .html file, a table of contents on the left such that if someone wanted to go directly to the Western Europe/Rome analysis, they just click in the table of contents.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Is-it-possible-to-name-html-output-files-with-by-values-two-sets/m-p/627672#M23799</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-26T21:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to name html output files with by values?  (two sets)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Is-it-possible-to-name-html-output-files-with-by-values-two-sets/m-p/627699#M23800</link>
      <description>&lt;P&gt;Hi Paige-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're absolutely right... doing it in macro would be more of a pain than it's worth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;have&amp;nbsp;some graphs (last 6 months of data)&amp;nbsp;and tables (last 3 months of data)&amp;nbsp;next to each other on a wiki page, and&amp;nbsp;currently the links point to names&amp;nbsp;like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_graph1.html, _table1.html&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_graph2.html, _table2.html&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which normally works out fine. Unfortunately, we have been having&amp;nbsp;delays in getting some data back, and as a consequence, I don't have as many "tables" as I ought to, and end up with mismatches.&amp;nbsp; Each output is&amp;nbsp;titled with #byval(),&amp;nbsp;so mismatches are&amp;nbsp;obvious.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just thought I would ask after finding the new&amp;nbsp;ODS GRAPHICS option. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wendy T.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 22:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Is-it-possible-to-name-html-output-files-with-by-values-two-sets/m-p/627699#M23800</guid>
      <dc:creator>WendyT</dc:creator>
      <dc:date>2020-02-26T22:11:15Z</dc:date>
    </item>
  </channel>
</rss>

