<?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: Full up the missing value with zero value in dateset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529822#M144822</link>
    <description>&lt;P&gt;This is the log file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;73: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;ERROR 73-322: Expecting an INTERVAL.&lt;BR /&gt;76: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;180: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;49: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in&lt;BR /&gt;a future SAS release. Inserting white space between a quoted&lt;BR /&gt;string and the succeeding identifier is recommended.&lt;BR /&gt;49: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in&lt;BR /&gt;a future SAS release. Inserting white space between a quoted&lt;BR /&gt;string and the succeeding identifier is recommended.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 19:41:41 GMT</pubDate>
    <dc:creator>asch1234</dc:creator>
    <dc:date>2019-01-24T19:41:41Z</dc:date>
    <item>
      <title>Full up the missing value with zero value in dateset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529817#M144819</link>
      <description>&lt;P&gt;Hi, I have changed the dateset into montly frequency.&lt;/P&gt;&lt;P&gt;I want to full the missing value into zero.&lt;/P&gt;&lt;P&gt;For example, for ID=14593,&lt;/P&gt;&lt;P&gt;I like to obtatin the zero value from 2002M06 to 2018M05.&lt;/P&gt;&lt;P&gt;for ID=21020,&lt;/P&gt;&lt;P&gt;I like to obtain the zero value from 2002M06 to 2015M04.&lt;/P&gt;&lt;P&gt;I know I should use proc timesiries.&lt;/P&gt;&lt;P&gt;But, I can not figure out the problem.&lt;/P&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;P&gt;proc timeseries data=return&lt;BR /&gt;out =return1;&lt;BR /&gt;by ID day;&lt;BR /&gt;id month;&lt;BR /&gt;interval=month align=end format=MONTH. start="2002M06"Y end="Endday"M setmissing=0;&lt;/P&gt;&lt;P&gt;var RET;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;day&lt;/TD&gt;&lt;TD&gt;Price&lt;/TD&gt;&lt;TD&gt;enday&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14593&lt;/TD&gt;&lt;TD&gt;20160429&lt;/TD&gt;&lt;TD&gt;-0.00213&lt;/TD&gt;&lt;TD&gt;20180503&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14593&lt;/TD&gt;&lt;TD&gt;20160531&lt;/TD&gt;&lt;TD&gt;-0.00116&lt;/TD&gt;&lt;TD&gt;20180503&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14593&lt;/TD&gt;&lt;TD&gt;20160606&lt;/TD&gt;&lt;TD&gt;0.001148&lt;/TD&gt;&lt;TD&gt;20180503&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21020&lt;/TD&gt;&lt;TD&gt;20140226&lt;/TD&gt;&lt;TD&gt;0.088704&lt;/TD&gt;&lt;TD&gt;20150412&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21020&lt;/TD&gt;&lt;TD&gt;20140331&lt;/TD&gt;&lt;TD&gt;-0.03789&lt;/TD&gt;&lt;TD&gt;20150412&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21020&lt;/TD&gt;&lt;TD&gt;20140430&lt;/TD&gt;&lt;TD&gt;0.111164&lt;/TD&gt;&lt;TD&gt;20150412&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529817#M144819</guid>
      <dc:creator>asch1234</dc:creator>
      <dc:date>2019-01-24T19:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Full up the missing value with zero value in dateset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529820#M144821</link>
      <description>So what you've shown is what you have? Based on that, can you show what you expect as the output? Does your code run with errors? Can you include the log too?</description>
      <pubDate>Thu, 24 Jan 2019 19:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529820#M144821</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-24T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Full up the missing value with zero value in dateset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529822#M144822</link>
      <description>&lt;P&gt;This is the log file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;73: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;ERROR 73-322: Expecting an INTERVAL.&lt;BR /&gt;76: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;180: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;49: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in&lt;BR /&gt;a future SAS release. Inserting white space between a quoted&lt;BR /&gt;string and the succeeding identifier is recommended.&lt;BR /&gt;49: LINE and COLUMN cannot be determined.&lt;BR /&gt;NOTE: NOSPOOL is on. Rerunning with OPTION SPOOL might allow recovery of the&lt;BR /&gt;LINE and COLUMN where the error has occurred.&lt;BR /&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in&lt;BR /&gt;a future SAS release. Inserting white space between a quoted&lt;BR /&gt;string and the succeeding identifier is recommended.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529822#M144822</guid>
      <dc:creator>asch1234</dc:creator>
      <dc:date>2019-01-24T19:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Full up the missing value with zero value in dateset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529825#M144824</link>
      <description>&lt;P&gt;And my other questions?&lt;/P&gt;
&lt;P&gt;Is the data posted what you're starting out with? What do you expect as output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code definitely has errors, for one it references variables not shown in your data set, such as RET, MONTH.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529825#M144824</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-24T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Full up the missing value with zero value in dateset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529829#M144826</link>
      <description>&lt;P&gt;It is just a part of my dataset.&lt;/P&gt;&lt;P&gt;The log file show the error.&lt;/P&gt;&lt;P&gt;I like to obtain the data like this:&lt;/P&gt;&lt;P&gt;ID day Price&lt;BR /&gt;14593 200206 0&lt;BR /&gt;14593 … 0&lt;BR /&gt;14593 201601 0&lt;BR /&gt;14593 201602 0&lt;BR /&gt;14593 201603 0&lt;BR /&gt;14593 201604 -0.00213378&lt;BR /&gt;14593 201605 -0.001161069&lt;BR /&gt;14593 201606 0.001147585&lt;BR /&gt;14593 201607 0&lt;BR /&gt;14593 201608 0&lt;BR /&gt;14593 201609 0&lt;BR /&gt;14593 201610 0&lt;BR /&gt;14593 201611 0&lt;BR /&gt;14593 201612 0&lt;BR /&gt;14593 …..&lt;BR /&gt;14593 201805 0&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Full-up-the-missing-value-with-zero-value-in-dateset/m-p/529829#M144826</guid>
      <dc:creator>asch1234</dc:creator>
      <dc:date>2019-01-24T19:55:01Z</dc:date>
    </item>
  </channel>
</rss>

