<?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 pass the time value to another variable? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791134#M253354</link>
    <description>&lt;P&gt;The value is the same, but you also need to apply the same display format. Run a PROC CONTENTS on your dataset, or inspect it with a dataset viewer in Enterprise Guide or SAS Studio and look at the variable Properties.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 13:17:26 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-01-20T13:17:26Z</dc:date>
    <item>
      <title>How to pass the time value to another variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791131#M253352</link>
      <description>&lt;P&gt;I have a column called startdate with time values, like:&lt;/P&gt;&lt;P&gt;30JUN1948:00:00:00.000&lt;/P&gt;&lt;P&gt;07JAN1967:00:00:00.000&lt;/P&gt;&lt;P&gt;01FEB1953:00:00:00.000&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;When I tried to pass the time value to a new variable called start,&amp;nbsp; like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data want;
set data have;
start = startdate;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The new column start looked like this:&lt;/P&gt;&lt;P&gt;-363052800&lt;/P&gt;&lt;P&gt;221443200&lt;/P&gt;&lt;P&gt;-218160000&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to know how to pass the date time value to the new column with its original format? Thanks.&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>Thu, 20 Jan 2022 12:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791131#M253352</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2022-01-20T12:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the time value to another variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791132#M253353</link>
      <description>&lt;P&gt;Give the new time variable an appropriate format &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 13:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791132#M253353</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-01-20T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the time value to another variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791134#M253354</link>
      <description>&lt;P&gt;The value is the same, but you also need to apply the same display format. Run a PROC CONTENTS on your dataset, or inspect it with a dataset viewer in Enterprise Guide or SAS Studio and look at the variable Properties.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 13:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791134#M253354</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-20T13:17:26Z</dc:date>
    </item>
  </channel>
</rss>

