<?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: Problem in ploting data in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493474#M3310</link>
    <description>&lt;P&gt;this is the code&lt;/P&gt;&lt;PRE&gt;proc import out=data
datafile="C:\Users\hp\Desktop\debt.xlsx"
dbms=excel replace; getnames=yes;
run;
proc timeseries data=data plots= series;
   id Year interval=YEAR;
    var   Debt;
run;
%let start=1983;
%let end=2017;

data data;
set data;
format date year4. ;
date = "01jan&amp;amp;start."d;
do until (date &amp;gt; "01jan&amp;amp;end."d);
  output data;
  date = intnx('year',date,1);
end;
run; 
proc sort data=data;
by date;
run;
proc timeseries data=data plots= series;
   id date interval=YEAR;
    var   Debt;
run;&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Sep 2018 15:00:48 GMT</pubDate>
    <dc:creator>Lok07</dc:creator>
    <dc:date>2018-09-07T15:00:48Z</dc:date>
    <item>
      <title>Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493349#M3300</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I want plot data using proc timeseries&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc timeseries data=data plots= series;

   id date interval=YEAR;
    var   Debt;
run;&lt;/PRE&gt;&lt;P&gt;but i didn't get the diagram.&lt;/P&gt;&lt;P&gt;Thank you for your helps.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 11:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493349#M3300</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T11:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493351#M3301</link>
      <description>&lt;P&gt;If the suggestions you got in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Error-in-date-variable/m-p/492797" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Error-in-date-variable/m-p/492797&lt;/A&gt; did not provide the necessary solution, please provide example data in usable form (datastep with datalines), and describe what you want to get out of it (and/or show an example for that). It might be that proc timeseries is not what you need at all.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 11:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493351#M3301</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-07T11:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493360#M3302</link>
      <description>&lt;P&gt;When i want plot data i get error that the variable date is not defined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After resolving the first problem thanks to you and i want plot data with that code i got only this table.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 11:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493360#M3302</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T11:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493361#M3303</link>
      <description>&lt;P&gt;Example data.&lt;/P&gt;
&lt;P&gt;Expected output.&lt;/P&gt;
&lt;P&gt;Please.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 11:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493361#M3303</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-07T11:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493363#M3304</link>
      <description>&lt;P&gt;This is the data&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 11:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493363#M3304</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493392#M3305</link>
      <description>&lt;P&gt;Please revise your question.&amp;nbsp; Provide test data in the form of a datastep:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;only need a few rows which accurately describe the problem.&lt;/P&gt;
&lt;P&gt;Next post the exact code you are using - use the code window, it is the {i} above post area, to retain formatting.&lt;/P&gt;
&lt;P&gt;Next post the log of the run part in question, again use the code window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick glance at the Excel file you posted, shows that there is no variable called date, therefore you get the error because you have tried to use a variable which is not in the data in:&lt;/P&gt;
&lt;PRE&gt;   id date interval=YEAR;&lt;BR /&gt;      ^here&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I would also advice you stop using SAS keywords as names, data=data for instance is just bad coding, and calling a date variable date, will just get very confusing.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493392#M3305</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-07T13:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493438#M3307</link>
      <description>&lt;P&gt;The date variable in excel is named Year. When i want plot the data using this variable i got the message:&lt;/P&gt;&lt;P&gt;"ERROR: Duplicate time interval found at observation number 2 in the data set WORK.DATA, according to&lt;BR /&gt;the INTERVAL=YEAR option and the ID variable values. The current ID is Year=1984 and the&lt;BR /&gt;previous is Year=1983, which are within the same YEAR interval.&lt;BR /&gt;Check that INTERVAL=YEAR is correct for this data set, and that the ID variable Year contains&lt;BR /&gt;SAS date or datetime values that correctly identify the observations"&lt;/P&gt;&lt;P&gt;So i created new variable date named date using code in ancient post and i used the code to plot data i got&amp;nbsp;&lt;/P&gt;&lt;P&gt;"ERROR: The data set WORK.DATA is not sorted by the ID variable. At observation number 36, date=1983,&lt;BR /&gt;but date=2017 for the previous observation."&lt;/P&gt;&lt;P&gt;&amp;nbsp;I sorted the variable by date but when i used code to plot it i got&amp;nbsp;&lt;/P&gt;&lt;P&gt;"ERROR: Observation with duplicate ID value found. The value of the ID variable, date=1983, at&lt;BR /&gt;observation number 2 in data set WORK.DATA is the same as the previous observation."&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 14:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493438#M3307</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T14:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493464#M3308</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to better understand the source of the problem you are encountering, please provide the following information:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) The "Alphabetic List of Variables and Attributes" table from the output of PROC CONTENTS run on your data set, DATA&lt;/P&gt;
&lt;P&gt;2) Output of PROC PRINT on the first 10 observations&amp;nbsp;of your data set, DATA&lt;/P&gt;
&lt;P&gt;3) Details on what&amp;nbsp;you are trying to plot--daily or annual data.&amp;nbsp; The Excel file contains daily data, but you are specifying INTERVAL=YEAR in the ID statement of PROC TIMESERIES.&amp;nbsp; Are you trying to accumulate the daily data to annual data prior to plotting it?&amp;nbsp; If so, then how do you want to accumulate the data (ie. annual totals, averages, etc.)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first two steps can be accomplished with the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=work.data;
run;

proc print data=work.data(obs=10);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once we have this information, we will be better able to address your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 14:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493464#M3308</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2018-09-07T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493466#M3309</link>
      <description>&lt;P&gt;Please show your full code and log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/224676"&gt;@Lok07&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The date variable in excel is named Year. When i want plot the data using this variable i got the message:&lt;/P&gt;
&lt;P&gt;"ERROR: Duplicate time interval found at observation number 2 in the data set WORK.DATA, according to&lt;BR /&gt;the INTERVAL=YEAR option and the ID variable values. The current ID is Year=1984 and the&lt;BR /&gt;previous is Year=1983, which are within the same YEAR interval.&lt;BR /&gt;Check that INTERVAL=YEAR is correct for this data set, and that the ID variable Year contains&lt;BR /&gt;SAS date or datetime values that correctly identify the observations"&lt;/P&gt;
&lt;P&gt;So i created new variable date named date using code in ancient post and i used the code to plot data i got&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"ERROR: The data set WORK.DATA is not sorted by the ID variable. At observation number 36, date=1983,&lt;BR /&gt;but date=2017 for the previous observation."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I sorted the variable by date but when i used code to plot it i got&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"ERROR: Observation with duplicate ID value found. The value of the ID variable, date=1983, at&lt;BR /&gt;observation number 2 in data set WORK.DATA is the same as the previous observation."&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 14:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493466#M3309</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-07T14:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493474#M3310</link>
      <description>&lt;P&gt;this is the code&lt;/P&gt;&lt;PRE&gt;proc import out=data
datafile="C:\Users\hp\Desktop\debt.xlsx"
dbms=excel replace; getnames=yes;
run;
proc timeseries data=data plots= series;
   id Year interval=YEAR;
    var   Debt;
run;
%let start=1983;
%let end=2017;

data data;
set data;
format date year4. ;
date = "01jan&amp;amp;start."d;
do until (date &amp;gt; "01jan&amp;amp;end."d);
  output data;
  date = intnx('year',date,1);
end;
run; 
proc sort data=data;
by date;
run;
proc timeseries data=data plots= series;
   id date interval=YEAR;
    var   Debt;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493474#M3310</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T15:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493482#M3312</link>
      <description>&lt;P&gt;I want to plot annual data.&lt;/P&gt;&lt;P&gt;When i created a new variable date the format of this variable is YEAR4.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493482#M3312</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T15:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493492#M3313</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please show your full code and log.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493492#M3313</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-07T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493493#M3314</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you import your annual data, the YEAR variable is a simple numeric year.&amp;nbsp; PROC TIMESERIES expects the ID variable to be a SAS date or datetime variable.&amp;nbsp; To create a SAS date variable from your numeric YEAR variable, please run the following code immediately after your PROC IMPORT step.&amp;nbsp; The MDY function will create a SAS date variable aligned to January 1 of each year in your YEAR variable.&amp;nbsp; Once you have this new DATE variable, you can use it in the ID statement in PROC TIMESERIES:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data debt_data;
  set data;
  date=mdy(1,1,year);
  format date year4.;
run;

proc timeseries data=debt_data plots= series;
   id date interval=YEAR;
    var Debt;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493493#M3314</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2018-09-07T15:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493508#M3315</link>
      <description>&lt;P&gt;Code&lt;/P&gt;&lt;PRE&gt;proc import out=data
datafile="C:\Users\hp\Desktop\debt.xlsx"
dbms=excel replace; getnames=yes;
run;&lt;BR /&gt;
proc timeseries data=data plots= series;
   id Year interval=YEAR;
    var   Debt;
run;
%let start=1983;
%let end=2017;

data data;
set data;
format date year4. ;
date = "01jan&amp;amp;start."d;
do until (date &amp;gt; "01jan&amp;amp;end."d);
  output data;
  date = intnx('year',date,1);
end;
run; 
proc sort data=data;
by date;
run;
proc timeseries data=data plots= series;
   id date interval=YEAR;
    var   Debt;
run;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23083i7D9C1CAE21839EFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23084i6C62B509D1B4CCFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23085i0C0775B82F47957B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23086iFD9E50158FC0919D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23087iD3C60CC671B55790/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493508#M3315</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T15:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493514#M3316</link>
      <description>&lt;P&gt;i got the same problem without diagram&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23088iC4F18FB836A43825/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23089iA0A4CFBB3F2EF446/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493514#M3316</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T15:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493521#M3317</link>
      <description>&lt;P&gt;Please provide&amp;nbsp;a PROC CONTENTS and a&amp;nbsp;PROC PRINT (of the first 10 observations) of your new DEBT_DATA data set so we can determine the cause of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493521#M3317</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2018-09-07T15:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493528#M3318</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/58092"&gt;@dw_sas&lt;/a&gt;&amp;nbsp;was right in his suggestion of how to fix your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you still have a few issues in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do not use the same data set name and the SET name. It makes it really hard to debug your code, is confusing and bad practice.&lt;/LI&gt;
&lt;LI&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data data;
set data; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;You have a year variable which is numeric and represents a year, as 1994, 1995. It is not a SAS date.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;For some reason you think you need to loop - SAS does this automatically so it's a single line of code to create your year variable.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;%let start=1983;
%let end=2017;&lt;/FONT&gt;&lt;/STRONG&gt;

data data;
set data;
format date year4. ;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;date = "01jan&amp;amp;start."d;
do until (date &amp;gt; "01jan&amp;amp;end."d);
  output data;
  date = intnx('year',date,1);
end;&lt;/STRONG&gt;&lt;/FONT&gt;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;When I imported the data there were some empty rows and columns, I deleted them.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I changed the variable name from date to myDate to make the code more clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete_time_series.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23090iC0BA1289B3BE20E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete_time_series.JPG" alt="delete_time_series.JPG" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Fri, 07 Sep 2018 15:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493528#M3318</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-07T15:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493665#M3320</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/224676"&gt;@Lok07&lt;/a&gt;&amp;nbsp;did this solve your issues?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 21:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493665#M3320</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-07T21:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ploting data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493681#M3322</link>
      <description>&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;The problem was in date function when i verified my data i found that the ancient date function create date from 1983 to 2017 but for each debt's value&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 23:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Problem-in-ploting-data/m-p/493681#M3322</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2018-09-07T23:15:44Z</dc:date>
    </item>
  </channel>
</rss>

