<?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: Reformat downloaded Mainframe reports to MS Word or PDF -- need PC page feeds, etc. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reformat-downloaded-Mainframe-reports-to-MS-Word-or-PDF-need-PC/m-p/238920#M43919</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_ ;
	INFILE txtin;
	INPUT @1 xchr $1. @1 lnin $CHAR133.;
	LENGTH lnut $134;
		 IF xchr=' ' then lnut=lnin;
	ELSE IF xchr='0' then lnut=CATS('0A20'x, SUBSTR(lnin,2));
	ELSE IF xchr='-' then lnut=CATS('0A0A20'x, SUBSTR(lnin,2));
	ELSE IF xchr='1' then lnut=CATS('0C20'x, SUBSTR(lnin,2));

	FILE txtut;
	PUT lnut;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not quite working.&amp;nbsp; I'm losing centered titles and not all formfeeds are being inserted.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2015 15:43:03 GMT</pubDate>
    <dc:creator>NinaLWerner</dc:creator>
    <dc:date>2015-12-11T15:43:03Z</dc:date>
    <item>
      <title>Reformat downloaded Mainframe reports to MS Word or PDF -- need PC page feeds, etc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reformat-downloaded-Mainframe-reports-to-MS-Word-or-PDF-need-PC/m-p/238684#M43849</link>
      <description>&lt;P&gt;I am hoping that someone will have an old&amp;nbsp;macro program to process my mainframe&amp;nbsp;reports&amp;nbsp;TXT output files and replace the&amp;nbsp;0 or 1&amp;nbsp;in column 1 [that was substituted for a real&amp;nbsp;page feed/ line feed&amp;nbsp;in the FTP process] with actual control codes, so I don't have to manually edit every page on these many legacy reports for which I have just become the steward.&amp;nbsp; Thanks!&amp;nbsp; I'm back on mainframe after twelve years or so on PC SAS.&amp;nbsp; It surprised me that the production process is:&amp;nbsp; &lt;EM&gt;FTP each report, then edit every single page to work in MS Word for printing, then create PDFs.&lt;/EM&gt; &lt;img id="manfrustrated" class="emoticon emoticon-manfrustrated" src="https://communities.sas.com/i/smilies/16x16_man-frustrated.png" alt="Man Frustrated" title="Man Frustrated" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 13:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reformat-downloaded-Mainframe-reports-to-MS-Word-or-PDF-need-PC/m-p/238684#M43849</guid>
      <dc:creator>NinaLWerner</dc:creator>
      <dc:date>2015-12-10T13:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reformat downloaded Mainframe reports to MS Word or PDF -- need PC page feeds, etc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reformat-downloaded-Mainframe-reports-to-MS-Word-or-PDF-need-PC/m-p/238920#M43919</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_ ;
	INFILE txtin;
	INPUT @1 xchr $1. @1 lnin $CHAR133.;
	LENGTH lnut $134;
		 IF xchr=' ' then lnut=lnin;
	ELSE IF xchr='0' then lnut=CATS('0A20'x, SUBSTR(lnin,2));
	ELSE IF xchr='-' then lnut=CATS('0A0A20'x, SUBSTR(lnin,2));
	ELSE IF xchr='1' then lnut=CATS('0C20'x, SUBSTR(lnin,2));

	FILE txtut;
	PUT lnut;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not quite working.&amp;nbsp; I'm losing centered titles and not all formfeeds are being inserted.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 15:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reformat-downloaded-Mainframe-reports-to-MS-Word-or-PDF-need-PC/m-p/238920#M43919</guid>
      <dc:creator>NinaLWerner</dc:creator>
      <dc:date>2015-12-11T15:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reformat downloaded Mainframe reports to MS Word or PDF -- need PC page feeds, etc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reformat-downloaded-Mainframe-reports-to-MS-Word-or-PDF-need-PC/m-p/240318#M44307</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I improved my result with &lt;/SPAN&gt;&lt;SPAN style="color: red; font-family: &amp;quot;Verdana&amp;quot;,sans-serif; font-size: 10pt;"&gt;INFILE txtin &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: red; font-family: &amp;quot;Verdana&amp;quot;,sans-serif; font-size: 11pt;"&gt;TRUNCOVER&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: red; font-family: &amp;quot;Verdana&amp;quot;,sans-serif; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;to handle short rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I still need help getting the titles centered (or maintaining the tabs inserted in the TXT rows.)&amp;nbsp; &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://communities.sas.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;&lt;P&gt;I can provide a sample input file, if you have any ideas and would like to play with it.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 20:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reformat-downloaded-Mainframe-reports-to-MS-Word-or-PDF-need-PC/m-p/240318#M44307</guid>
      <dc:creator>NinaLWerner</dc:creator>
      <dc:date>2015-12-21T20:40:22Z</dc:date>
    </item>
  </channel>
</rss>

