<?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: format issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811313#M319983</link>
    <description>&lt;P&gt;Why not just run the program you have to read the data file and then review your SAS log? This will indicate whether you have any processing problems or not.&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 20:11:22 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-05-03T20:11:22Z</dc:date>
    <item>
      <title>format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811161#M319946</link>
      <description>&lt;P&gt;I have a file called pmam.static.txt.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;normally it was read into sas program with the following lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INFILE "&amp;amp;G_IFC_RAW_PENDING_PATH./pmam.static.txt" REFM=N;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_50417409.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71088iEB47CD5B48A9609A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_50417409.JPG" alt="image_50417409.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if I read it in note pad, it is showing as strange symbols..&amp;nbsp; which look like this picture showing above and attached...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now my questions is how can I see the content ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I read this in sas? how can I see the content in sas... Could the file actually be a sas data set??&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please help thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 04:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811161#M319946</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-05-03T04:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811162#M319947</link>
      <description>&lt;P&gt;I suggest you ask the person from whom the file is coming. They should know.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 05:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811162#M319947</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-03T05:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811163#M319948</link>
      <description>&lt;P&gt;Where did you get the file?&lt;/P&gt;
&lt;P&gt;Why do you think it is a text file?&amp;nbsp; What text did you expect to see in it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try looking at the file and see what bytes are actually there.&amp;nbsp; The easiest way is to use the LIST statement in a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This step will dump the first 500 bytes to the SAS log for you to look at.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   INFILE "&amp;amp;G_IFC_RAW_PENDING_PATH./pmam.static.txt" recfm=f lrecl=100 obs=5;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Since you have a lot of&amp;nbsp;@ characters which hex code of 40 perhaps the text is actually in EBCDIC instead of ASCII.&amp;nbsp; 40 is a space in EBCDIC.&amp;nbsp; Try reading it with $EBCDIC informat and see if it looks more like text.&lt;/P&gt;
&lt;P&gt;This will try to read the first 100 bytes from each of the first 5 lines and create a SAS dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   INFILE "&amp;amp;G_IFC_RAW_PENDING_PATH./pmam.static.txt" obs=5 truncover;
   line+1;
   input text $ebcdic100.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2022 05:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811163#M319948</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-05-03T05:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811166#M319949</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_50334721.JPG" style="width: 749px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71089iE39F5D75115B70E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_50334721.JPG" alt="image_50334721.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is the code in the pic above helping to show what format and how I can read it?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 06:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811166#M319949</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-05-03T06:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811168#M319950</link>
      <description>&lt;P&gt;seem it says it extract IBM EBCDIC File PMAM STATIC into SAS dataset&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_50353665.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71090i5987A0B3878B302E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_50353665.JPG" alt="image_50353665.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 06:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811168#M319950</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-05-03T06:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811170#M319951</link>
      <description>&lt;PRE class="language-sas"&gt;&lt;CODE&gt;data test;
   INFILE "&amp;amp;G_IFC_RAW_PENDING_PATH./pmam.static.txt" obs=5 truncover;
   line+1;
   input text $ebcdic100.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so if I want to see the first 20 row fully , how do I write? like below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;INFILE "&amp;amp;G_IFC_RAW_PENDING_PATH./pmam.static.txt" obs=20 truncover;&lt;/P&gt;
&lt;P&gt;line+1;&lt;/P&gt;
&lt;P&gt;input text $ebcdic100.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do I need to increase the 100 byte to a higher number?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please advise, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811170#M319951</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-05-03T07:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811178#M319954</link>
      <description>&lt;P&gt;Check the following three options .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data test;
   INFILE "&amp;amp;G_IFC_RAW_PENDING_PATH./pmam.static.txt" truncover&lt;FONT color="#FF0000"&gt; encoding=&lt;/FONT&gt;'EDBIC'  &lt;FONT color="#FF0000"&gt;recfm=&lt;/FONT&gt;s370  &lt;FONT color="#FF0000"&gt;termstr=nl&lt;/FONT&gt;   ;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2022 09:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811178#M319954</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-03T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811221#M319962</link>
      <description>&lt;P&gt;Did the code posted the photograph of not work?&lt;/P&gt;
&lt;P&gt;What errors did you get?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 13:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811221#M319962</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-05-03T13:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: format issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811313#M319983</link>
      <description>&lt;P&gt;Why not just run the program you have to read the data file and then review your SAS log? This will indicate whether you have any processing problems or not.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 20:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/format-issue/m-p/811313#M319983</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-03T20:11:22Z</dc:date>
    </item>
  </channel>
</rss>

