<?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: Print infile in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Print-infile/m-p/615700#M76991</link>
    <description>&lt;P&gt;For wide files, I like to use a variation on that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _null_;
INFILE FILE ;
input @;
list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The LIST statement will give you a ruler and make it easier to see how the characters within the raw data file line up.&amp;nbsp; It will print in HEX format which makes it easier to detect special characters such as tabs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note that it's easy to add to the DATA step along these lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if _n_ &amp;gt; 20 then stop;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need to print the entire file if printing 20 lines is good enough.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2020 15:41:11 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2020-01-07T15:41:11Z</dc:date>
    <item>
      <title>Print infile</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Print-infile/m-p/615683#M76987</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I print the full contents of the infile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//FILE DD DISP=SHR,DSN=ABCD.TSS7&lt;BR /&gt;//SYSIN DD *&lt;BR /&gt;&lt;BR /&gt;DATA abc;&lt;BR /&gt;&lt;BR /&gt;OPTIONS PAGESIZE = 9999;&lt;BR /&gt;INFILE FILE end=EOF missover ;&lt;BR /&gt;input ;&lt;BR /&gt;&lt;BR /&gt;options pageno=1;&lt;BR /&gt;proc printto print=recpdtl;&lt;BR /&gt;&lt;BR /&gt;proc print data=abc noobs;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 15:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Print-infile/m-p/615683#M76987</guid>
      <dc:creator>IanW</dc:creator>
      <dc:date>2020-01-07T15:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Print infile</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Print-infile/m-p/615690#M76988</link>
      <description>&lt;P&gt;Maybe this will help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename FT15F001 temp;
parmcards;
this is a file
it has two lines
;;;;

data _null_;
   file PRINT;
   infile FT15F001;
   input;
   put _infile_;
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jan 2020 15:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Print-infile/m-p/615690#M76988</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2020-01-07T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Print infile</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Print-infile/m-p/615700#M76991</link>
      <description>&lt;P&gt;For wide files, I like to use a variation on that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _null_;
INFILE FILE ;
input @;
list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The LIST statement will give you a ruler and make it easier to see how the characters within the raw data file line up.&amp;nbsp; It will print in HEX format which makes it easier to detect special characters such as tabs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note that it's easy to add to the DATA step along these lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if _n_ &amp;gt; 20 then stop;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need to print the entire file if printing 20 lines is good enough.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 15:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Print-infile/m-p/615700#M76991</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-01-07T15:41:11Z</dc:date>
    </item>
  </channel>
</rss>

