<?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: How to create trend line in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641725#M23960</link>
    <description>The proc template runs and it says overwriting existing template/link :linechart stagragh linechart has been saved to sasuser.templat&lt;BR /&gt;&lt;BR /&gt;The Marco the last part of code I rec a warning message&lt;BR /&gt;" the linechart statement named linechart will not be drawn because one or more of the required arguments were not supplied it tells me in blue 80k records were read for year 2020 ...I need help to determine missing arguments thanks again</description>
    <pubDate>Tue, 21 Apr 2020 19:31:21 GMT</pubDate>
    <dc:creator>Gil_</dc:creator>
    <dc:date>2020-04-21T19:31:21Z</dc:date>
    <item>
      <title>How to create trend line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641723#M23959</link>
      <description>/* Define the line chart template */&lt;BR /&gt;proc template;&lt;BR /&gt;define statgraph linechart;&lt;BR /&gt;begingraph;&lt;BR /&gt;/* Create a dynamic variable for the year */&lt;BR /&gt;dynamic year;&lt;BR /&gt;&lt;BR /&gt;/* Define the display attributes for each stock. Since&lt;BR /&gt;DISCRETEATTRMAP does not support the MARKERATTRS=&lt;BR /&gt;suboption SIZE=, the marker size is set separately. */&lt;BR /&gt;discreteattrmap name="company" / ignorecase=true ;&lt;BR /&gt;value "shoe" /&lt;BR /&gt;markerattrs=(color=blue symbol=trianglefilled)&lt;BR /&gt;lineattrs=(color=lightblue pattern=solid);&lt;BR /&gt;value "skirt" /&lt;BR /&gt;markerattrs=(color=red symbol=circlefilled)&lt;BR /&gt;lineattrs=(color=verylightred pattern=solid);&lt;BR /&gt;value "pants" /&lt;BR /&gt;markerattrs=(color=orange symbol=squarefilled)&lt;BR /&gt;lineattrs=(color=verylightorange pattern=solid);&lt;BR /&gt;enddiscreteattrmap ;&lt;BR /&gt;&lt;BR /&gt;/* Associate the attribute map with input data column Stock and&lt;BR /&gt;assign the name STOCKATTRS to the named association */&lt;BR /&gt;discreteattrvar attrvar=companyattrs var=company attrmap="company" ;&lt;BR /&gt;&lt;BR /&gt;entrytitle "company Index Performance in " year;&lt;BR /&gt;layout overlay /&lt;BR /&gt;/* Add a grid */&lt;BR /&gt;xaxisopts=(griddisplay=on gridattrs=(pattern=dot&lt;BR /&gt;color=lightgray))&lt;BR /&gt;yaxisopts=(griddisplay=on gridattrs=(pattern=dot&lt;BR /&gt;color=lightgray));&lt;BR /&gt;linechart category=date response=close / name="linechart"&lt;BR /&gt;/* Compute the mean */&lt;BR /&gt;stat=mean&lt;BR /&gt;&lt;BR /&gt;/* Group by stock using the specified attributes */&lt;BR /&gt;group=companyattrs&lt;BR /&gt;&lt;BR /&gt;/* Display the lines and markers */&lt;BR /&gt;display=(line markers)&lt;BR /&gt;&lt;BR /&gt;/* Set the marker size */&lt;BR /&gt;markerattrs=(size=6)&lt;BR /&gt;&lt;BR /&gt;/* Show vertex labels and specify their attributes */&lt;BR /&gt;vertexlabel=true&lt;BR /&gt;vertexlabelattrs=(size=7pt)&lt;BR /&gt;vertexlabelformat=dollar4.0;&lt;BR /&gt;&lt;BR /&gt;/* Add a legend */&lt;BR /&gt;discretelegend "linechart";&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* Create a macro that generates a line chart for a specific year */&lt;BR /&gt;%macro genchart(year=);&lt;BR /&gt;/* Generate the chart */&lt;BR /&gt;proc sgrender data=companys template=linechart;&lt;BR /&gt;where year(date)=&amp;amp;year; /* Get the data for the specified year */&lt;BR /&gt;format date monname3.; /* Format the date as 3-letter month */&lt;BR /&gt;dynamic year="&amp;amp;year;"; /* Pass the year to the template */&lt;BR /&gt;run;&lt;BR /&gt;%mend genchart;&lt;BR /&gt;&lt;BR /&gt;/* Generate a chart for 2001 */&lt;BR /&gt;%genchart(year=2020);</description>
      <pubDate>Tue, 21 Apr 2020 19:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641723#M23959</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2020-04-21T19:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create trend line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641725#M23960</link>
      <description>The proc template runs and it says overwriting existing template/link :linechart stagragh linechart has been saved to sasuser.templat&lt;BR /&gt;&lt;BR /&gt;The Marco the last part of code I rec a warning message&lt;BR /&gt;" the linechart statement named linechart will not be drawn because one or more of the required arguments were not supplied it tells me in blue 80k records were read for year 2020 ...I need help to determine missing arguments thanks again</description>
      <pubDate>Tue, 21 Apr 2020 19:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641725#M23960</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2020-04-21T19:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create trend line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641730#M23961</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dynamic year="&amp;amp;year&lt;FONT size="5" color="#FF6600"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;"; /* Pass the year to the template */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you need the semicolon in the quotes? I suspect that's an issue. &lt;STRIKE&gt;You may not even need quotes if it's defined as numeric value.&amp;nbsp;&lt;/STRIKE&gt; EDIT: You do need the quotes though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dynamic year="&amp;amp;year";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 19:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641730#M23961</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-21T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create trend line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641735#M23962</link>
      <description>It didnt work rec same warning missing arguments the code I found in sas documents under how to create line chart statement ... the data I'm using looks like this&lt;BR /&gt;Day. Which is format Date9. Company formation $9. Total format best12. When I try the example code that pings the help folder it works</description>
      <pubDate>Tue, 21 Apr 2020 19:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641735#M23962</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2020-04-21T19:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create trend line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641738#M23963</link>
      <description>&lt;P&gt;One strongly suspects something in your data set named companys. Either their are missing values or the variable names are spelled differently than you used in the template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also would suggest running your Sgrender code without any macro variables.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 20:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641738#M23963</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-21T20:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create trend line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641749#M23964</link>
      <description>Got it had date instead of day</description>
      <pubDate>Tue, 21 Apr 2020 20:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-trend-line/m-p/641749#M23964</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2020-04-21T20:40:56Z</dc:date>
    </item>
  </channel>
</rss>

