<?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 separate data and time and assign time am/pm in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538078#M6867</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263036"&gt;@Sundeep_M&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SIR HERE IS THE DATA SET&lt;/P&gt;
&lt;P&gt;Mr. Manoj&amp;nbsp; &amp;nbsp; &amp;nbsp;18/02/2007:3:30&lt;/P&gt;
&lt;P&gt;Mr. Jacob&amp;nbsp; &amp;nbsp; &amp;nbsp;19/02/2007:4:15&lt;/P&gt;
&lt;P&gt;Mr.Anil&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19/02/2007:13:00&lt;/P&gt;
&lt;P&gt;Mr.Rathod&amp;nbsp; &amp;nbsp; &amp;nbsp;20/03/2007:14:30&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sir for the above data set can you explain how to separate data and time and assign time am/pm.&lt;/P&gt;
&lt;P&gt;Thanks for your feedback i will change my subject.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thank you, but is this a SAS data set, or text that has to be read in from some external file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, we request that you change the subject line of the &lt;EM&gt;original&lt;/EM&gt; post in this thread.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Feb 2019 13:13:04 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-02-24T13:13:04Z</dc:date>
    <item>
      <title>how to separate data and time and assign time am/pm</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538074#M6863</link>
      <description>&lt;P&gt;How to separate date and time when combined and assign time with am and pm.&lt;/P&gt;&lt;P&gt;And also can you please write down the code.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 13:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538074#M6863</guid>
      <dc:creator>Sundeep_M</dc:creator>
      <dc:date>2019-02-24T13:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538075#M6864</link>
      <description>&lt;P&gt;Give us an example of your input data. Please specify in your reply whether or not the data is already in a SAS data set as numeric or character, and whether it is formatted. If the data is not in a SAS data set and has to be read in from some text file, please show us an example of such a date and time.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Also, please, we are trying to help you, and you can help us by providing a more specific subject line to your original question. The existing subject line "SAS query" could apply to any question about anything in SAS.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 12:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538075#M6864</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-24T12:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538076#M6865</link>
      <description>&lt;P&gt;See my footnotes for hints on posting data in form of code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this is a website for helping people do their work, not doing their work for them. If you need someone to write your code, hire a consultant.&lt;/P&gt;
&lt;P&gt;Work through the&amp;nbsp;&lt;EM&gt;free&lt;/EM&gt; Programming 1 course to have all the basics settled.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 12:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538076#M6865</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-24T12:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to separate data and time and assign time am/pm</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538077#M6866</link>
      <description>&lt;P&gt;SIR HERE IS THE DATA SET&lt;/P&gt;&lt;P&gt;Mr. Manoj&amp;nbsp; &amp;nbsp; &amp;nbsp;18/02/2007:3:30&lt;/P&gt;&lt;P&gt;Mr. Jacob&amp;nbsp; &amp;nbsp; &amp;nbsp;19/02/2007:4:15&lt;/P&gt;&lt;P&gt;Mr.Anil&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19/02/2007:13:00&lt;/P&gt;&lt;P&gt;Mr.Rathod&amp;nbsp; &amp;nbsp; &amp;nbsp;20/03/2007:14:30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sir for the above data set can you explain how to separate data and time and assign time am/pm.&lt;/P&gt;&lt;P&gt;Thanks for your feedback i will change my subject.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 13:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538077#M6866</guid>
      <dc:creator>Sundeep_M</dc:creator>
      <dc:date>2019-02-24T13:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to separate data and time and assign time am/pm</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538078#M6867</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263036"&gt;@Sundeep_M&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;SIR HERE IS THE DATA SET&lt;/P&gt;
&lt;P&gt;Mr. Manoj&amp;nbsp; &amp;nbsp; &amp;nbsp;18/02/2007:3:30&lt;/P&gt;
&lt;P&gt;Mr. Jacob&amp;nbsp; &amp;nbsp; &amp;nbsp;19/02/2007:4:15&lt;/P&gt;
&lt;P&gt;Mr.Anil&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19/02/2007:13:00&lt;/P&gt;
&lt;P&gt;Mr.Rathod&amp;nbsp; &amp;nbsp; &amp;nbsp;20/03/2007:14:30&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sir for the above data set can you explain how to separate data and time and assign time am/pm.&lt;/P&gt;
&lt;P&gt;Thanks for your feedback i will change my subject.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thank you, but is this a SAS data set, or text that has to be read in from some external file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, we request that you change the subject line of the &lt;EM&gt;original&lt;/EM&gt; post in this thread.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 13:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538078#M6867</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-24T13:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to separate data and time and assign time am/pm</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538079#M6868</link>
      <description>&lt;P&gt;Sir this is a text that has to be read from external file&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 13:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538079#M6868</guid>
      <dc:creator>Sundeep_M</dc:creator>
      <dc:date>2019-02-24T13:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to separate date and time and assign time am/pm</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538080#M6869</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*** UNTESTED CODE ***/

data want;
     infile "filename.txt";
     input name $10. &amp;amp; datetime :ANYDTDTM16.;
     date=datetpart(datetime);
     time=timepart(datetime);
     format date ddyymm8. time timeampm8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Feb 2019 13:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-separate-data-and-time-and-assign-time-am-pm/m-p/538080#M6869</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-24T13:26:18Z</dc:date>
    </item>
  </channel>
</rss>

