<?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: exporting data from SAS to redcap in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705848#M26282</link>
    <description>&lt;P&gt;That does not look like an error from SAS.&amp;nbsp; Not sure what REDCAP is but the error seems to be saying that you need to give it datetime strings in YMD HMS order, even if your values do not have any time component. People normally just use zeros for the time of day parts in that case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are just showing a PROC PRINT statement.&amp;nbsp; That will just write the data to a text file (or if you are using ODS some other file type like&amp;nbsp; EXCEL, RTF, etc).&amp;nbsp; What format does Redcap want the data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS stores dates as the number of days since 1960 and datetime values as the number of seconds since 1960.&amp;nbsp; Your SAS code is assuming you have SAS date values so that the YYMMDD format can by used with it.&amp;nbsp; If your actual SAS variable has datetime values then you will not want to use the YYMMDD format as they value will be way too large. There are 24*60*60 seconds in a day.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2020 21:43:14 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-12-14T21:43:14Z</dc:date>
    <item>
      <title>exporting data from SAS to redcap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705847#M26281</link>
      <description>&lt;P&gt;Hello;&lt;/P&gt;
&lt;P&gt;I am trying to export data/report from sas to redcap and I am getting this error below. I tried to change my date to&amp;nbsp;yymmdd10. but, Am still having a problem on understanding what the issues is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=stemp Noobs;&lt;BR /&gt;format start yymmdd10.;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"error":"\"2-2c\",\"start\",\"11\/01\/2010 \",\"Invalid date format. (NOTE: Dates must be imported here only in Y-M-D H:M[:S] format, regardless of the specific date format designated for this field.)&amp;nbsp;\"\n\"2-2j\",\"start\",\"10\/01\/2010 \",\"Invalid date format. (NOTE: Dates must be imported here only in Y-M-D H:M[:S] format, regardless of the specific date format designated for this field.)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 21:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705847#M26281</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-12-14T21:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: exporting data from SAS to redcap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705848#M26282</link>
      <description>&lt;P&gt;That does not look like an error from SAS.&amp;nbsp; Not sure what REDCAP is but the error seems to be saying that you need to give it datetime strings in YMD HMS order, even if your values do not have any time component. People normally just use zeros for the time of day parts in that case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are just showing a PROC PRINT statement.&amp;nbsp; That will just write the data to a text file (or if you are using ODS some other file type like&amp;nbsp; EXCEL, RTF, etc).&amp;nbsp; What format does Redcap want the data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS stores dates as the number of days since 1960 and datetime values as the number of seconds since 1960.&amp;nbsp; Your SAS code is assuming you have SAS date values so that the YYMMDD format can by used with it.&amp;nbsp; If your actual SAS variable has datetime values then you will not want to use the YYMMDD format as they value will be way too large. There are 24*60*60 seconds in a day.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 21:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705848#M26282</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-14T21:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: exporting data from SAS to redcap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705850#M26283</link>
      <description>from the error it seems that redcap wants the data in Y-M-D H:M[:S] format. &lt;BR /&gt;My data is in mmddyy8. format. And I tried to change it to YYMMDD format to export it to redcap. My data only has date no time.</description>
      <pubDate>Mon, 14 Dec 2020 21:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705850#M26283</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-12-14T21:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: exporting data from SAS to redcap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705857#M26284</link>
      <description>&lt;P&gt;what is the&amp;nbsp;&lt;SPAN&gt;Language Element for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;YMD HMS order&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 22:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705857#M26284</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-12-14T22:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: exporting data from SAS to redcap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705953#M26293</link>
      <description>&lt;P&gt;I don't know if a format exits that appends fake-time information to a date. Most likely you will have to convert the date into a sas datetime before exporting it. You could use the function &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1b9d1kbo0czoxn1ouj1kcxwqzn1.htm" target="_self"&gt;dhms&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 07:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/exporting-data-from-SAS-to-redcap/m-p/705953#M26293</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-12-15T07:51:59Z</dc:date>
    </item>
  </channel>
</rss>

