<?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: Join date and time stored in different column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800351#M314813</link>
    <description>&lt;P&gt;The photo for DOB1D&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tejaswini3_0-1646494614879.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69175iEB3F5FA2F6FD0933/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tejaswini3_0-1646494614879.png" alt="Tejaswini3_0-1646494614879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The photo for VSN1D&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tejaswini3_1-1646494672099.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69176i12DC7F9A3DF7943E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tejaswini3_1-1646494672099.png" alt="Tejaswini3_1-1646494672099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Mar 2022 15:38:02 GMT</pubDate>
    <dc:creator>Tejaswini3</dc:creator>
    <dc:date>2022-03-05T15:38:02Z</dc:date>
    <item>
      <title>Join date and time stored in different column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800317#M314791</link>
      <description>&lt;P&gt;Kindly check below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data PKMERGE;
set PKDAR;
/*Derivation of elapsed time*/
/*Join date and time*/
datetime=dhms(input(ATLSMP1T, date9.), 0, 0, input(ATLSMP1T, 11.));
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After running above code following log is appearing&lt;/P&gt;&lt;PRE&gt;NOTE: Invalid argument to function INPUT at line 738 column 15.
NOTE: Invalid argument to function INPUT at line 738 column 46.&lt;/PRE&gt;&lt;P&gt;Because of this datetime value is not able to generate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 09:56:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800317#M314791</guid>
      <dc:creator>Tejaswini3</dc:creator>
      <dc:date>2022-03-05T09:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Join date and time stored in different column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800318#M314792</link>
      <description>&lt;P&gt;You get this message because the values of variable ATLSMP1T cannot be properly used in the INPUT function with the format shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what are typical values of this variable? Best to show us a portion of your data set named PKDAR as SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;instructions&lt;/A&gt;) and not in any other format.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 10:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800318#M314792</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-05T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Join date and time stored in different column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800331#M314800</link>
      <description>&lt;P&gt;Kindly see the below image for the input column&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="Tejaswini3_0-1646485794653.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69172i7984E3040EED3DC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tejaswini3_0-1646485794653.png" alt="Tejaswini3_0-1646485794653.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 13:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800331#M314800</guid>
      <dc:creator>Tejaswini3</dc:creator>
      <dc:date>2022-03-05T13:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Join date and time stored in different column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800348#M314812</link>
      <description>&lt;P&gt;Run Proc Contents on that data set and show us the variable properties.&lt;/P&gt;
&lt;P&gt;Or click on the column heading of the variable in the VIEWTABLE window, which will bring up variable properties. Show us the type and assigned format.&lt;/P&gt;
&lt;P&gt;If the type is Numeric and the Format is Date9. then the input is failing because the value is numeric and a date and does not need to be input. Same if the time variable is numeric with a Time format, it is already time and does not need input.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 15:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800348#M314812</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-05T15:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Join date and time stored in different column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800351#M314813</link>
      <description>&lt;P&gt;The photo for DOB1D&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tejaswini3_0-1646494614879.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69175iEB3F5FA2F6FD0933/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tejaswini3_0-1646494614879.png" alt="Tejaswini3_0-1646494614879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The photo for VSN1D&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tejaswini3_1-1646494672099.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69176i12DC7F9A3DF7943E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tejaswini3_1-1646494672099.png" alt="Tejaswini3_1-1646494672099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 15:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800351#M314813</guid>
      <dc:creator>Tejaswini3</dc:creator>
      <dc:date>2022-03-05T15:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Join date and time stored in different column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800352#M314814</link>
      <description>&lt;P&gt;Looking at the pictures you posted the values of the time variable it has a colon in it. Hence the error when trying to read it as a number.&amp;nbsp; You&amp;nbsp; will want to use the TIME informat to convert strings like '11:12' into a time value (number of seconds since midnight).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;datetime=dhms(input(ATLSMP1T, date9.), 0, 0, input(ATLSMP1T, time9.));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I really don't understand why people go to the extra effort to take pictures of text and jump through hoops to post them instead of just copying and pasting the text. or in the case of the types and lengths of 2 variables just typing the text directly)&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 15:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800352#M314814</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-05T15:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Join date and time stored in different column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800440#M314876</link>
      <description>&lt;P&gt;Still same issue is coming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: Invalid argument to function INPUT at line 134 column 15.&lt;BR /&gt;NOTE: Invalid argument to function INPUT at line 134 column 46.&lt;BR /&gt;ATLSMP1T=10:55 SMP1D=13MAR2006 datetime=. _ERROR_=1 _N_=1&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 07:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800440#M314876</guid>
      <dc:creator>Tejaswini3</dc:creator>
      <dc:date>2022-03-06T07:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Join date and time stored in different column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800441#M314877</link>
      <description>&lt;P&gt;The code need to be&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data trial;
set pkmerge;
datetime=dhms(input(SMP1D, date9.), 0, 0, input(ATLSMP1T, time5.));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Mar 2022 08:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Join-date-and-time-stored-in-different-column/m-p/800441#M314877</guid>
      <dc:creator>Tejaswini3</dc:creator>
      <dc:date>2022-03-06T08:03:53Z</dc:date>
    </item>
  </channel>
</rss>

