<?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: Redcap export to SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187093#M9723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Doc Muhlbaier!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the instructions are very straightforward. However, I was trying to create a similar process for another application not Redcap. I know I can give access to the backend (SQL Server, MySQL) using the SAS/ACCESS component. I was also looking for an alternative method other than SAS/ACCESS. This has been a very helpful community. Thanks for all your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2015 19:03:09 GMT</pubDate>
    <dc:creator>okcken</dc:creator>
    <dc:date>2015-01-22T19:03:09Z</dc:date>
    <item>
      <title>Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187090#M9720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I am trying to do seamless export of data from a database to SAS. I am trying to follow the Redcap model of downloading three files: SAS file, Pathway mapper and CSV file. Does anyone in the community know how to go about implementing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Sorry, if I am asking this question in the wrong discussion community. If I am, please direct me to the right group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thank you!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 19:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187090#M9720</guid>
      <dc:creator>okcken</dc:creator>
      <dc:date>2015-01-16T19:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187091#M9721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken, try posting to the SAS Procedures Forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 20:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187091#M9721</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-01-19T20:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187092#M9722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by 'seamless'?&amp;nbsp; The RedCap instructions are pretty straightforward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dislike the *.SAS file that redcap creates (why does every character variable need to be 500 characters wide -- that is one lazy developer!), so I had to write follow-on code to restructure the data I wanted to keep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 18:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187092#M9722</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2015-01-22T18:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187093#M9723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Doc Muhlbaier!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the instructions are very straightforward. However, I was trying to create a similar process for another application not Redcap. I know I can give access to the backend (SQL Server, MySQL) using the SAS/ACCESS component. I was also looking for an alternative method other than SAS/ACCESS. This has been a very helpful community. Thanks for all your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 19:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187093#M9723</guid>
      <dc:creator>okcken</dc:creator>
      <dc:date>2015-01-22T19:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187094#M9724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;SQL Server, MySQL&amp;nbsp;&amp;nbsp; --&amp;gt; CSV file or other txt file --&amp;gt; SAS&amp;nbsp; ,&amp;nbsp; vice versa .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 09:01:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/187094#M9724</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-01-23T09:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/843204#M41783</link>
      <description>&lt;P&gt;I have recently published a macro to export REDCap data into SAS along with formats and a data dictionary. Please see my paper, presentation, and code by filling out this survey:&amp;nbsp;&lt;A href="https://redcap.link/REDCapIsMySASFriend" target="_blank" rel="noopener noreferrer"&gt;https://redcap.link/REDCapIsMySASFriend&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Distribution using this method allows me to distribute only the most recent version, so you can check back to this survey in the future as well.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/843204#M41783</guid>
      <dc:creator>Delgoffe_MCRI</dc:creator>
      <dc:date>2022-11-08T18:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/843211#M41784</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;A quick glance at the code and the main benefit of the macros seems to be to automate the API call to retrieve the data dictionary and the data.&amp;nbsp; So that you could initiate an extract from RedCap via code instead of the user interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed you did include a simplified method of checking the downloaded CSV file to insure that there are no embedded CRLF pairs in any of the variable values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any other smarts in the macro also that make working with the format that RedCap exports the data easier?&amp;nbsp; That is understanding the meaning of the data dictionary and using that to convert the data as exported into a structure more suitable for working with in SAS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/843211#M41784</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-08T18:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/843213#M41786</link>
      <description>&lt;P&gt;Yes, it uses regular expressions to remove HTML, carriage returns, and completely parses the REDCap data dictionary to provide labels and formats to the SAS dataset it creates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At times you may need to control how it interprets the type of variable it makes based on existing data (ESPECIALLY with missing data codes), but the next version under development will go through and replace text missing data codes with numeric acceptable values before import to avoid that...so stay tuned!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/843213#M41786</guid>
      <dc:creator>Delgoffe_MCRI</dc:creator>
      <dc:date>2022-11-08T18:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/930352#M46366</link>
      <description>&lt;P&gt;Hello Doc Muhlbaier,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was having some issues with the formats that get added by default to the variables when exporting from REDCap.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What sort of follow-on code do you do to get your intended results?&amp;nbsp; I was also noticing some issues where some variables are stored as numeric, but the output shows a string?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to both REDCap and SAS and am sort of stuck on this issue. Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 22:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/930352#M46366</guid>
      <dc:creator>sassy_seb</dc:creator>
      <dc:date>2024-05-30T22:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/930433#M46367</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465531"&gt;@sassy_seb&lt;/a&gt;&amp;nbsp;Check out my export macro. You can get the latest version using my REDCap survey in the previous comments or reading my paper(s) on &lt;A href="https://www.lexjansen.com/" target="_blank"&gt;LexJansen.com&lt;/A&gt; by searching "REDCap Your SAS Friend". The most recent one should be listed first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question more pointedly - I've circumvented those issues by first downloading the data dictionary via API and using it to define features instead of the code REDCap provides as an export option. This is even more important with the use of style characters in values now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will also be presenting new content on REDCap at the SESUG Conference in Bethesda September 22-24th (2024). Registration is still open - as is call for content.&lt;/P&gt;&lt;P&gt;&lt;A href="https://sesug.org/SESUG2024/index.php" target="_blank"&gt;https://sesug.org/SESUG2024/index.php&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 14:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/930433#M46367</guid>
      <dc:creator>Delgoffe_MCRI</dc:creator>
      <dc:date>2024-05-31T14:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/992296#M49524</link>
      <description>&lt;P&gt;I am just starting to explore the data export, cleaning and report generation elements in REDCap. The back end looks like a big hot mess to me.&amp;nbsp; Will the process you outlined in your paper work on complex projects with repeating instruments and longitudinal aspects? I built my projects but the back end is overwhelming to me. I have a childhood Lead Poisoning Surveillance project that has around 3500 variables(not all needed for reporting) with 4 longitudinal pieces (for environmental investigation activities only) and repeating instruments throughout the project. I have included a screenshot of most of the build&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="Screenshot 2026-08-20 123637.png" style="width: 352px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/117105i0CE9F8C0FF2376B2/image-dimensions/352x733?v=v2" width="352" height="733" role="button" title="Screenshot 2026-08-20 123637.png" alt="Screenshot 2026-08-20 123637.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot 2026-08-20 123637.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 19:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/992296#M49524</guid>
      <dc:creator>DCMarks25</dc:creator>
      <dc:date>2026-08-20T19:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Redcap export to SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/992298#M49525</link>
      <description>&lt;P&gt;You will want to explore a Limited Fields Extract or first create a Report in REDCap and then export that report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have presented several times and published many versions of the normal export process (exports all fields but does work for all REDCaps including complex ones like yours), Limited fields (where you specify which fields), or Report Based (exporting from a report you already created in REDcap) exports.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can obtain all of those using my REDCap survey here:&amp;nbsp;&lt;A href="https://redcap.link/REDCapIsMySASFriend" rel="noopener noreferrer nofollow" target="_blank"&gt;https://redcap.link/REDCapIsMySASFriend&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you'd prefer - you can also join/meet me at the Midwest SAS Users Group Conference, where I am the operations chair this year, November 15-17th, 2026 in Madison, WI and I can be your code doctor for a custom solution! Check it out at &lt;A href="http://www.mwsug.org" target="_blank"&gt;www.mwsug.org&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 20:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Redcap-export-to-SAS/m-p/992298#M49525</guid>
      <dc:creator>Delgoffe_MCRI</dc:creator>
      <dc:date>2026-08-20T20:00:56Z</dc:date>
    </item>
  </channel>
</rss>

