<?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: Plotting a Series in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729676#M227125</link>
    <description>&lt;PRE&gt;%web_drop_table(WORK.IMPORT1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FILENAME REFFILE '/folders/myfolders/sasuser.v94/PROBLEM SET 2_DATA.xls';&lt;BR /&gt;ods listing ;&lt;BR /&gt;ods html close ;&lt;BR /&gt;ods graphics off ;&lt;BR /&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;	DBMS=XLS&lt;BR /&gt;	OUT=WORK.IMPORT1;&lt;BR /&gt;	GETNAMES=YES;&lt;BR /&gt;RUN;&lt;BR /&gt;ods listing ;&lt;BR /&gt;ods html close ;&lt;BR /&gt;ods graphics off ;&lt;BR /&gt;PROC CONTENTS DATA=WORK.IMPORT1; RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%web_open_table(WORK.IMPORT1);&lt;BR /&gt;data import1;&lt;BR /&gt;set work.import1 ;&lt;BR /&gt; T = _n_ ; run ;&lt;BR /&gt; &lt;BR /&gt;ods listing ;&lt;BR /&gt;ods html close ;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;&lt;BR /&gt;%macro PLOT(var1,data,time,title);&lt;BR /&gt;goptions reset=global border cback=white htitle=1.5;&lt;BR /&gt;symbol1 interpol=join value=dot height=0.5 color=red;&lt;BR /&gt;*symbol2 interpol=join value=none height=0.5 color=blue;&lt;BR /&gt;axis1 label=none;&lt;BR /&gt;proc gplot data=&amp;amp;data;&lt;BR /&gt;  plot &amp;amp;var1*&amp;amp;time / haxis=axis1 vaxis=axis2 legend=legend1;&lt;BR /&gt;title1 "&amp;amp;title" /*height=0.001 in*/;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;%PLOT(Series_A,import1,T,"Plotting Series A") ;&lt;BR /&gt;run ;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Mar 2021 01:19:17 GMT</pubDate>
    <dc:creator>RL876378</dc:creator>
    <dc:date>2021-03-29T01:19:17Z</dc:date>
    <item>
      <title>Plotting a Series</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729615#M227090</link>
      <description>&lt;PRE&gt;%macro PLOT(var1,data,time,title);&lt;BR /&gt;goptions reset=global border cback=white htitle=1.5;&lt;BR /&gt;symbol1 interpol=join value=dot height=0.5 color=red;&lt;BR /&gt;*symbol2 interpol=join value=none height=0.5 color=blue;&lt;BR /&gt;axis1 label=none;&lt;BR /&gt;proc gplot data=&amp;amp;data;&lt;BR /&gt;	plot &amp;amp;var1*&amp;amp;time / haxis=axis1 vaxis=axis2 legend=legend1;&lt;BR /&gt;title1 "&amp;amp;title" /*height=0.001 in*/;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;%mend;&lt;BR /&gt;%PLOT(Series_A,import1,T,"Plotting series_A") ;&lt;BR /&gt;run ;&lt;/PRE&gt;&lt;P&gt;Hi, I'm trying to plot a time series graph but keep getting an error message in regards to my vaxis code. Also when I use sgplot&amp;nbsp; the program isn't reading plot &amp;amp;var1*&amp;amp;time / haxis=axis1 vaxis=axis2 legend=legend1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 10:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729615#M227090</guid>
      <dc:creator>RL876378</dc:creator>
      <dc:date>2021-03-28T10:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting a Series</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729616#M227091</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372417"&gt;@RL876378&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;%macro PLOT(var1,data,time,title);&lt;BR /&gt;goptions reset=global border cback=white htitle=1.5;&lt;BR /&gt;symbol1 interpol=join value=dot height=0.5 color=red;&lt;BR /&gt;*symbol2 interpol=join value=none height=0.5 color=blue;&lt;BR /&gt;axis1 label=none;&lt;BR /&gt;proc gplot data=&amp;amp;data;&lt;BR /&gt;	plot &amp;amp;var1*&amp;amp;time / haxis=axis1 vaxis=axis2 legend=legend1;&lt;BR /&gt;title1 "&amp;amp;title" /*height=0.001 in*/;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;%mend;&lt;BR /&gt;%PLOT(Series_A,import1,T,"Plotting series_A") ;&lt;BR /&gt;run ;&lt;/PRE&gt;
&lt;P&gt;Hi, I'm trying to plot a time series graph but keep getting an error message in regards to my vaxis code. Also when I use sgplot&amp;nbsp; the program isn't reading plot &amp;amp;var1*&amp;amp;time / haxis=axis1 vaxis=axis2 legend=legend1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For your future benefit (and to continue discussing this problem), when there is an error message, we need to see the LOG of your SAS code. First, please turn on this option and run your code again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We need to see the&lt;FONT color="#FF0000"&gt; entire log&lt;/FONT&gt; from a run of this macro, with nothing chopped out, and without you selecting certain portions to show us. That's 100%, all of it, every single character, not just the error message(s). When providing the log, please follow these instructions to preserve the formatting of the log and make it more readable: copy the log as text and then paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon. (Honestly, if you don't preserve the formatting this way, I no longer try to read the log)&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 10:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729616#M227091</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-28T10:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting a Series</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729617#M227092</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your program stumbles upon&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;vaxis=axis2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;because you don't have an axis2 statement to define that vertical axis!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would still use proc sgplot, sthg. like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.stocks
  (where=(date &amp;gt;= "01jan2000"d and stock = "IBM"));
  title "Stock Trend";
  series x=date y=close;
  series x=date y=low;
  series x=date y=high;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;You get the join interpolation automatically.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your title statement may give troubles as well, due to too many (nested) quotation marks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have a nice day,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 11:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729617#M227092</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-03-28T11:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting a Series</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729676#M227125</link>
      <description>&lt;PRE&gt;%web_drop_table(WORK.IMPORT1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FILENAME REFFILE '/folders/myfolders/sasuser.v94/PROBLEM SET 2_DATA.xls';&lt;BR /&gt;ods listing ;&lt;BR /&gt;ods html close ;&lt;BR /&gt;ods graphics off ;&lt;BR /&gt;PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;	DBMS=XLS&lt;BR /&gt;	OUT=WORK.IMPORT1;&lt;BR /&gt;	GETNAMES=YES;&lt;BR /&gt;RUN;&lt;BR /&gt;ods listing ;&lt;BR /&gt;ods html close ;&lt;BR /&gt;ods graphics off ;&lt;BR /&gt;PROC CONTENTS DATA=WORK.IMPORT1; RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%web_open_table(WORK.IMPORT1);&lt;BR /&gt;data import1;&lt;BR /&gt;set work.import1 ;&lt;BR /&gt; T = _n_ ; run ;&lt;BR /&gt; &lt;BR /&gt;ods listing ;&lt;BR /&gt;ods html close ;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;&lt;BR /&gt;%macro PLOT(var1,data,time,title);&lt;BR /&gt;goptions reset=global border cback=white htitle=1.5;&lt;BR /&gt;symbol1 interpol=join value=dot height=0.5 color=red;&lt;BR /&gt;*symbol2 interpol=join value=none height=0.5 color=blue;&lt;BR /&gt;axis1 label=none;&lt;BR /&gt;proc gplot data=&amp;amp;data;&lt;BR /&gt;  plot &amp;amp;var1*&amp;amp;time / haxis=axis1 vaxis=axis2 legend=legend1;&lt;BR /&gt;title1 "&amp;amp;title" /*height=0.001 in*/;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;%PLOT(Series_A,import1,T,"Plotting Series A") ;&lt;BR /&gt;run ;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Mar 2021 01:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729676#M227125</guid>
      <dc:creator>RL876378</dc:creator>
      <dc:date>2021-03-29T01:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting a Series</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729772#M227174</link>
      <description>&lt;P&gt;This is not the LOG, which is what I asked for. You need to turn on the MPRINT option first, run your code, and show me the log according to the instructions I gave.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 13:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plotting-a-Series/m-p/729772#M227174</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-29T13:04:02Z</dc:date>
    </item>
  </channel>
</rss>

