<?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: Code to create MED DEV report required by EU in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360823#M18678</link>
    <description>&lt;P&gt;Thank you for the pointers. The template is Excel and I didn't want to post an Excel document.&amp;nbsp;I figured out how to add a picture to the original post, so I removed the Word document with the picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will look into the suggestions here - they give me a direction to take.&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 16:39:21 GMT</pubDate>
    <dc:creator>sschleede</dc:creator>
    <dc:date>2017-05-23T16:39:21Z</dc:date>
    <item>
      <title>Code to create MED DEV report required by EU</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360772#M18675</link>
      <description>&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Our clinical study is required to do Medical Device reporting to be compliant with the EU&amp;nbsp;DIRECTIVES 90/385/EEC AND 93/42/EEC. We need to create a MED DEV report weekly in Excel. I have attached a picture of the template. The requirements are that the column widths, fonts and coloring have to match the template. I believe we also need to color code some columns to highlight modified records from new records. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I know there are lots of resources in the community about creating reports in Excel, but has anyone specifically programmed the MED DEV report? I am not looking for how to generate the dataset. I am looking for the code to produce the Excel report from the dataset. This just seems like a task that many of us will have to do and it would be nice to have a common piece of code that is all debugged that we can reuse as a community. Or a nice SAS procedure (Proc MEDDEV?) that would create the report for us!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I will post my solution when I have it running and debugged.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I am not asking for anyone to create new code, but if you have already programmed this and are willing to share your code, that would be very nice!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Below is a picture of the MED DEV report in the Excel template:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&lt;IMG title="MEDDEV template.png" alt="MEDDEV template.png" src="https://communities.sas.com/t5/image/serverpage/image-id/8993i2677840F98F039AA/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 16:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360772#M18675</guid>
      <dc:creator>sschleede</dc:creator>
      <dc:date>2017-05-23T16:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Code to create MED DEV report required by EU</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360777#M18676</link>
      <description>&lt;P&gt;Many of the users are not going to open a Microsoft formatted document either because of policy, security blocking downloads&amp;nbsp;or simple concern over other security issues such as occurred recently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Convert the document to text if it contains descriptions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Coloring and column widths can be set inside Proc Print, Report or Tabulate code using either ODS tagsets.excelxp or ODS Excel options.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 15:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360777#M18676</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-23T15:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code to create MED DEV report required by EU</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360822#M18677</link>
      <description>&lt;P&gt;Really, strange I have never heard of this. &amp;nbsp;Anyways, this community doesn't provide script library functions, nor would it be responsible for such a thing (these kind of libraries can take up vast amounts of peoples time and we are volunteers!). &amp;nbsp;As for creating the specific output, I wouldn't download that file myself so can't see it, but most formatting and such like can be done in proc report, I would probably goto RTF, then convert the RTF file to docx if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* scrub this bit, I see your using .docx, aargh, even worse&lt;/P&gt;
&lt;P&gt;with tagsets.excelxp. &amp;nbsp;If they want exactly that file however, you may be better off dumping out the data to CSV and writing code in VBA within Excel to populate that report. &amp;nbsp;Its about time that this kind of reporting and such like moves away from Excel as a format.&lt;/P&gt;
&lt;P&gt;*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A final thought, you might check the Phuse site, they have a few scripts on there.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 16:15:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360822#M18677</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-23T16:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Code to create MED DEV report required by EU</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360823#M18678</link>
      <description>&lt;P&gt;Thank you for the pointers. The template is Excel and I didn't want to post an Excel document.&amp;nbsp;I figured out how to add a picture to the original post, so I removed the Word document with the picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will look into the suggestions here - they give me a direction to take.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 16:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/360823#M18678</guid>
      <dc:creator>sschleede</dc:creator>
      <dc:date>2017-05-23T16:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code to create MED DEV report required by EU</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/361944#M18706</link>
      <description>&lt;P&gt;This is how I solved this. I used the Poor/Rich SAS Users Proc Export (&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;) macro.&lt;/P&gt;&lt;P&gt;I have an Excel template with the color coding, font and date formatting. The code below uses the macro to copy the template and put the data in the right places in the report.&lt;/P&gt;&lt;P&gt;I also format all dates as 03/14/2001 with locale = English (U.S.). I found out that you choose a date format with an asterisk and it will use the locale information stored in the recipients computer to determine if it should be displayed mm/dd/yyyy or dd/mm/yyyy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing = ' ';
/* This puts the main part of the report starting in cell A9 */
%exportxl(data=MedDev,
                outfile=&amp;amp;RepDir.\MedDev Report.xlsx ,
                sheet=Tabelle1,
                type=N,
                usenames=L,
                range=A9,
                replace=Y,
                template=&amp;amp;RepDir.\MedDev template.xltx ,
                templatesheet=Tabelle1,
                useformats=Y,
                method=I,
                server_path=);

/* This puts the run date into cell C8 */
%exportxl(data=RunD,
                outfile=&amp;amp;RepDir.\MedDev Report.xlsx ,
                sheet=Tabelle1,
                type=M,
                usenames=N,
                range=C8,
                replace=Y,
                template=,
                templatesheet=,
                useformats=Y,
                method=I,
                server_path=);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 12:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Code-to-create-MED-DEV-report-required-by-EU/m-p/361944#M18706</guid>
      <dc:creator>sschleede</dc:creator>
      <dc:date>2017-05-26T12:50:17Z</dc:date>
    </item>
  </channel>
</rss>

