<?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 SAS proc report to PDF , truncating text in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-proc-report-to-PDF-truncating-text/m-p/196330#M13223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to output to the following proc report to a&amp;nbsp; PDF file using the following code.&amp;nbsp; However my narrative variable&amp;nbsp; gets truncated if it is longer than one PDF page. One page is fine but if it spans over two pages it is truncated at the end of the first page. Does anyone have any help on how to stop the truncation of the narrative field.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Many thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc report data=patient headline headskip split='\' nowd;&lt;/P&gt;&lt;P&gt;where casenumber=&amp;amp;casenum;&lt;/P&gt;&lt;P&gt;column casenumber narrative comment_text abbrev_narrative seriousness_desc serious_notes causality &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; agent_notes listedness listedness_notes outcome_desc;&lt;/P&gt;&lt;P&gt;define casenumber / order id noprint;&lt;/P&gt;&lt;P&gt;define narrative / display&amp;nbsp; width=50 'Narrative' flow;&lt;/P&gt;&lt;P&gt;define comment_text / display&amp;nbsp; width=50&amp;nbsp; Analysis Statement' flow;&lt;/P&gt;&lt;P&gt;define abbrev_narrative / display&amp;nbsp; width=40 Comment' flow page;&lt;/P&gt;&lt;P&gt;define seriousness_desc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=20 'Case Seriousness';&lt;/P&gt;&lt;P&gt;define serious_notes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=20 'Notes' flow;&lt;/P&gt;&lt;P&gt;define causality&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=10 'Case Causality';&lt;/P&gt;&lt;P&gt;define agent_notes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=20 'Notes' flow;&lt;/P&gt;&lt;P&gt;define listedness&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=14 'Listedness Determination';&lt;/P&gt;&lt;P&gt;define listedness_notes / display&amp;nbsp; width=20 'Notes' flow;&lt;/P&gt;&lt;P&gt;define outcome_desc / display&amp;nbsp; width=20 'Case Outcome' page;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;compute before _page_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;line @3 'CASE ASSESSMENT';&lt;/P&gt;&lt;P&gt;line @4 ' ';&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;ods pdf startpage=now;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro loop(list=);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if %sysfunc(exist(work.check1)) %then %do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%* Initialize loop;&lt;/P&gt;&lt;P&gt;%let i=1;&lt;/P&gt;&lt;P&gt;%let casei=%scan(&amp;amp;list,&amp;amp;i,str(,));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%* Run loop;&lt;/P&gt;&lt;P&gt;%do %while (&amp;amp;casei ne);&lt;/P&gt;&lt;P&gt;dm 'odsresults; clear'; &lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;options papersize=a4 leftmargin=3.5 cm rightmargin=3.5 cm;&lt;/P&gt;&lt;P&gt;ods pdf file = "C:\temp\CaseNumber &amp;amp;casei..pdf" style = sasweb;&lt;/P&gt;&lt;P&gt;ods escapechar='~'; &lt;/P&gt;&lt;P&gt;footnote1 j=c 'Page ~{thispage} of ~{lastpage} ';&lt;/P&gt;&lt;P&gt;footnote2 j=r 'Report Generated on ' &amp;amp;sysdate9;&lt;/P&gt;&lt;P&gt;ods pdf startpage=no;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%* Do processing for this iteration of the loop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %put PROCESSING CASE NUMBER &amp;amp;casei;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %casereport(casenum=&amp;amp;casei);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %* Prepare for next iteration of the loop; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %let i=%eval(&amp;amp;i+1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %let casei=%scan(&amp;amp;list,&amp;amp;i,str(,));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%else %do;&lt;/P&gt;&lt;P&gt;%display logonerror;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;dm 'odsresults; clear'; &lt;/P&gt;&lt;P&gt;%mend loop;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2015 11:39:44 GMT</pubDate>
    <dc:creator>lisahoward</dc:creator>
    <dc:date>2015-08-11T11:39:44Z</dc:date>
    <item>
      <title>SAS proc report to PDF , truncating text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-proc-report-to-PDF-truncating-text/m-p/196330#M13223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to output to the following proc report to a&amp;nbsp; PDF file using the following code.&amp;nbsp; However my narrative variable&amp;nbsp; gets truncated if it is longer than one PDF page. One page is fine but if it spans over two pages it is truncated at the end of the first page. Does anyone have any help on how to stop the truncation of the narrative field.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Many thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc report data=patient headline headskip split='\' nowd;&lt;/P&gt;&lt;P&gt;where casenumber=&amp;amp;casenum;&lt;/P&gt;&lt;P&gt;column casenumber narrative comment_text abbrev_narrative seriousness_desc serious_notes causality &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; agent_notes listedness listedness_notes outcome_desc;&lt;/P&gt;&lt;P&gt;define casenumber / order id noprint;&lt;/P&gt;&lt;P&gt;define narrative / display&amp;nbsp; width=50 'Narrative' flow;&lt;/P&gt;&lt;P&gt;define comment_text / display&amp;nbsp; width=50&amp;nbsp; Analysis Statement' flow;&lt;/P&gt;&lt;P&gt;define abbrev_narrative / display&amp;nbsp; width=40 Comment' flow page;&lt;/P&gt;&lt;P&gt;define seriousness_desc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=20 'Case Seriousness';&lt;/P&gt;&lt;P&gt;define serious_notes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=20 'Notes' flow;&lt;/P&gt;&lt;P&gt;define causality&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=10 'Case Causality';&lt;/P&gt;&lt;P&gt;define agent_notes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=20 'Notes' flow;&lt;/P&gt;&lt;P&gt;define listedness&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; width=14 'Listedness Determination';&lt;/P&gt;&lt;P&gt;define listedness_notes / display&amp;nbsp; width=20 'Notes' flow;&lt;/P&gt;&lt;P&gt;define outcome_desc / display&amp;nbsp; width=20 'Case Outcome' page;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;compute before _page_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;line @3 'CASE ASSESSMENT';&lt;/P&gt;&lt;P&gt;line @4 ' ';&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;ods pdf startpage=now;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro loop(list=);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if %sysfunc(exist(work.check1)) %then %do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%* Initialize loop;&lt;/P&gt;&lt;P&gt;%let i=1;&lt;/P&gt;&lt;P&gt;%let casei=%scan(&amp;amp;list,&amp;amp;i,str(,));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%* Run loop;&lt;/P&gt;&lt;P&gt;%do %while (&amp;amp;casei ne);&lt;/P&gt;&lt;P&gt;dm 'odsresults; clear'; &lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;options papersize=a4 leftmargin=3.5 cm rightmargin=3.5 cm;&lt;/P&gt;&lt;P&gt;ods pdf file = "C:\temp\CaseNumber &amp;amp;casei..pdf" style = sasweb;&lt;/P&gt;&lt;P&gt;ods escapechar='~'; &lt;/P&gt;&lt;P&gt;footnote1 j=c 'Page ~{thispage} of ~{lastpage} ';&lt;/P&gt;&lt;P&gt;footnote2 j=r 'Report Generated on ' &amp;amp;sysdate9;&lt;/P&gt;&lt;P&gt;ods pdf startpage=no;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%* Do processing for this iteration of the loop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %put PROCESSING CASE NUMBER &amp;amp;casei;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %casereport(casenum=&amp;amp;casei);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %* Prepare for next iteration of the loop; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %let i=%eval(&amp;amp;i+1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %let casei=%scan(&amp;amp;list,&amp;amp;i,str(,));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%else %do;&lt;/P&gt;&lt;P&gt;%display logonerror;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;dm 'odsresults; clear'; &lt;/P&gt;&lt;P&gt;%mend loop;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 11:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-proc-report-to-PDF-truncating-text/m-p/196330#M13223</guid>
      <dc:creator>lisahoward</dc:creator>
      <dc:date>2015-08-11T11:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS proc report to PDF , truncating text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-proc-report-to-PDF-truncating-text/m-p/196331#M13224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hi:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt; Without data, or the full program, it is very hard to make a constructive comment. If truncation is occuring, it is related to the actual data using your actual program. It might be to your benefit to contact Tech Support and open a track. They could look at ALL of your program and use it with your data in order to help you debug your issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;cynthia&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 03:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-proc-report-to-PDF-truncating-text/m-p/196331#M13224</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-08-13T03:55:05Z</dc:date>
    </item>
  </channel>
</rss>

