<?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: Creating a file to include in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34214#M4967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had trouble with PROC REPORT in the past not combining STYLE settings.&amp;nbsp; Your code is already setting style using call define.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Try adding the HREFTARGET tag to those style settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2011 14:25:26 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2011-10-28T14:25:26Z</dc:date>
    <item>
      <title>Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34205#M4958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am creating a file that i am gonig to include in my proc report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT works until I want to open my links in a new tab.&lt;/P&gt;&lt;P&gt;Creating the compfile:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is at the bottom where I want to make sure the Links will open in a new tab. Any help with this? been looking for some days now..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; num &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal; font-family: 'Courier New'; background-color: white;"&gt;$2.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal; font-family: 'Courier New'; background-color: white;"&gt;$400.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; i &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;4.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; compfile &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;catalog&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'work.tmp.compfile.source'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; compfile &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;lrecl&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;500&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;i=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; (i le &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;25&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; (i ge &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;) and (i le &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;9&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; num = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; || left(i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; num = left(i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;"compute _"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; || num || &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;";"&lt;/SPAN&gt;; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;" if not notupper(substr(_"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; || num || &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;",1,1))"&lt;/SPAN&gt;;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;" then call define (_col_,'style','style=[BACKGROUND=#A6CE39 FONT_WEIGHT=BOLD]');"&lt;/SPAN&gt;;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;" else call define (_col_,'style','style=[BACKGROUND=#A9A9A9 FONT_WEIGHT=BOLD]');"&lt;/SPAN&gt;;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;" if substr(_"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; || num || &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;",1,1) = '&amp;lt;'"&lt;/SPAN&gt;; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;" then call define (_col_,'style','style=[BACKGROUND=#FFCC33 FONT_WEIGHT=BOLD]');"&lt;/SPAN&gt;;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;&lt;SPAN&gt;'url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://fabwtsdev.imec.be:8080/eDocStorageWebGui/Imec.eDoc.StorageWebGui.xbap?CtxFormat=CtxName;CtxValue;Optional;EditMode&amp;amp;Ctx="&gt;http://fabwtsdev.imec.be:8080/eDocStorageWebGui/Imec.eDoc.StorageWebGui.xbap?CtxFormat=CtxName;CtxValue;Optional;EditMode&amp;amp;Ctx=&lt;/A&gt;&lt;SPAN&gt;";'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;"T = trim(substr(_"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; || num || &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;",1,1) || '"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;|| input(num,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal; font-family: 'Courier New'; background-color: white;"&gt;$2.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;) ||&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;"');"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'url_SP = url || "LotId;" || compress(LOT_ID) || ";Man;NoEdit;Operation;" || compress(Operation) || ";Man;NoEdit;DuploWaferId;" || compress(T) || ";Opt;Edit";'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'if _'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;|| num || &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;" ne '-' and not notupper(substr(_"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;|| num ||&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;",1,1))&amp;nbsp; then CALL DEFINE(_COL_, 'URL', url_SP || '"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; target=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;"_blank' );"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; cc = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;"endcomp;"&lt;/SPAN&gt;; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; cc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp; i+&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 12:24:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34205#M4958</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-10-25T12:24:08Z</dc:date>
    </item>
    <item>
      <title>Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34206#M4959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not look like you have the quoting for the target option right.&amp;nbsp; You should be generating HTML that looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;target="_blank"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: purple; font-family: 'Courier New';"&gt;CALL DEFINE(_COL_, 'URL', url_SP || '"&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: black; font-family: 'Courier New';"&gt; target=&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: purple; font-family: 'Courier New';"&gt;"_blank' );"&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: black; font-family: 'Courier New';"&gt;So it should probably be &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: purple; font-family: 'Courier New';"&gt;CALL DEFINE(_COL_, 'URL', url_SP || '"&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: black; font-family: 'Courier New';"&gt; target=&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: purple; font-family: 'Courier New';"&gt;"_blank"' );&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-size: 10pt; color: black; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 13:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34206#M4959</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-25T13:00:29Z</dc:date>
    </item>
    <item>
      <title>Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34207#M4960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; it gives error on your way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;The SAS program did not produce any output.&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;then CALL DEFINE(_COL_, 'URL', url_SP || '"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; target=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;"_blank"' );'&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;This request completed with errors.&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 13:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34207#M4960</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-10-25T13:05:33Z</dc:date>
    </item>
    <item>
      <title>Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34208#M4961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quoting still looks mismatched, but it is hard to tell.&amp;nbsp; Can you paste in a copy of the generated code?&lt;/P&gt;&lt;P&gt;That should make it easier to tell if your code generation worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you calling the generated code? &lt;/P&gt;&lt;P&gt;Can you make a simplied version of the code (without this code generation step) that gets the URLs to open in a new tab/window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 13:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34208#M4961</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-25T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34209#M4962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a string that is quoted with double quotes (") that has embedded double quotes. You need to double the inner ones to get them to be treated as text instead of delimiters of the string.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put "Hello ""Sam"".";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 13:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34209#M4962</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-25T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34210#M4963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find that it is MUCH easier to use the PUT statement to generate code than to try and build it into strings.&lt;/P&gt;&lt;P&gt;I also find it much easier to use temporary files rather than source catalogs for code generation.&amp;nbsp; You can look at them much easier and use them in more places.&lt;/P&gt;&lt;P&gt;I like to limit my line lengths to &amp;lt; 80 (really 72) so that both me and the computer can read the code more easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a version of your program that is more "SASified". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;filename compfile temp;&lt;/P&gt;&lt;P&gt;*filename compfile catalog 'work.tmp.compfile.source';&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file compfile lrecl=500;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to 25 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'compute _' i z2. ';'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / 'if not notupper(substr(_' i z2. ',1,1)) then'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '&amp;nbsp; call define (_col_,"style","style=[BACKGROUND=#A6CE39 FONT_WEIGHT=BOLD]")'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ';' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / 'else call define (_col_,"style","style=[BACKGROUND=#A9A9A9 FONT_WEIGHT=BOLD]");'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / "if substr(_" i z2. ",1,1) = '&amp;lt;' then"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / "&amp;nbsp; call define (_col_,'style','style=[BACKGROUND=#FFCC33 FONT_WEIGHT=BOLD]')"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ';'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / 'url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://fabwtsdev.imec.be:8080/eDocStorageWebGui/Imec.eDoc.StorageWebGui.xbap"&gt;http://fabwtsdev.imec.be:8080/eDocStorageWebGui/Imec.eDoc.StorageWebGui.xbap&lt;/A&gt;&lt;SPAN&gt;"'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '&amp;nbsp; || "?CtxFormat=CtxName;CtxValue;Optional;EditMode&amp;amp;Ctx=";'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / "T = substr(_" i z2. ",1,1) || '" i z2. "';"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / 'url_SP = url || "LotId;" || compress(LOT_ID) || ";Man;NoEdit;Operation;"'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '&amp;nbsp; || compress(Operation) || ";Man;NoEdit;DuploWaferId;" || compress(T) || ";Opt;Edit";'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / 'if _' i z2. " ne '-' and not notupper(substr(_" i z2. ",1,1)) then"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / "&amp;nbsp; CALL DEFINE(_COL_, 'URL', url_SP || ' target=""_blank""' )"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ';'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / "endcomp;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that perhaps your issue is with the last CALL DEFINE statement.&lt;/P&gt;&lt;P&gt;Do you need to separate the URL from the TARGET= option somehow?&amp;nbsp; Perhaps by using quote(trim(url_SP))?&lt;/P&gt;&lt;P&gt;You should test getting the syntax for this correct in a very simple example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 13:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34210#M4963</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-25T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34211#M4964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you mean this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;ods html file='c:\x.html' style=sasweb;
proc report data=sashelp.class nowd ;
 columns sex age;
 define sex/ style={ HREFTARGET='_BLANK' };
 compute sex; 
&amp;nbsp; url='http://www.sas.com';
&amp;nbsp; if sex='F' then call define(_col_,'url',url);
 endcomp;
 run;
 ods html close;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 07:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34211#M4964</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-26T07:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34212#M4965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ksharp, i read your answer and it would be great if that worked.. but it does not for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; define _01 / display width =80 style={HREFTARGET='_BLANK'}&amp;nbsp; ;&lt;/P&gt;&lt;P&gt; define _02 / display width =80 style={HREFTARGET='_BLANK'}&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;result for _02: &amp;lt;td class="l Data" style=" font-weight: bold; background-color: #A6CE39;"&amp;gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://winiis1.imec.be:8080/eDocStorageWebGui/Imec.eDoc.StorageWebGui.xbap?CtxFormat=CtxName;CtxValue;Optional;EditMode&amp;amp;Ctx=LotId;AE114235;Man;NoEdit;Operation;7001-ComposeLot;Man;NoEdit;DuploWaferId;D02;Opt;Edit"&gt;http://winiis1.imec.be:8080/eDocStorageWebGui/Imec.eDoc.StorageWebGui.xbap?CtxFormat=CtxName;CtxValue;Optional;EditMode&amp;amp;Ctx=LotId;AE114235;Man;NoEdit;Operation;7001-ComposeLot;Man;NoEdit;DuploWaferId;D02;Opt;Edit&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;D02&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so NO target=_blank to be seen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is my define statement wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 08:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34212#M4965</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-10-26T08:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34213#M4966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Counld This URL&amp;nbsp; be opened by browser ? If it were , I think code is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;ods html file='c:\x.html' style=sasweb;
proc report data=sashelp.class nowd ;
 columns sex age;
 define sex/ style={ HREFTARGET='_BLANK' };
 compute sex; 
&amp;nbsp; length url $ 2000;
&amp;nbsp; url="http://www.google.com.hk/#hl=zh-CN&amp;amp;source=hp&amp;amp;q=http:%2F%2Ffabwtsdev.imec.&amp;amp;btnG=Google+%E6%90%9C%E7%B4%A2&amp;amp;oq=http:%2F%2Ffabwtsdev.imec.&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;gs_sm=s&amp;amp;gs_upl=9904l15080l1l16792l55l12l0l0l0l0l0l0ll0l0&amp;amp;bav=on.2,or.r_gc.r_pw.,cf.osb&amp;amp;fp=547ac8dddbfbbf18&amp;amp;biw=1024&amp;amp;bih=634
";
&amp;nbsp; if sex='F' then call define(_col_,'url',url);
 endcomp;
 run;
 ods html close;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 05:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34213#M4966</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-28T05:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34214#M4967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had trouble with PROC REPORT in the past not combining STYLE settings.&amp;nbsp; Your code is already setting style using call define.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Try adding the HREFTARGET tag to those style settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 14:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34214#M4967</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-28T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a file to include in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34215#M4968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;P&gt;little remark in a sas context where macro language exists:&lt;/P&gt;&lt;P&gt;single quote is necessary&amp;nbsp; for the url as you have many &amp;amp; MV resolution in action with the double quoting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 16:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-a-file-to-include-in-proc-report/m-p/34215#M4968</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2011-10-28T16:00:40Z</dc:date>
    </item>
  </channel>
</rss>

