<?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: Informats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470902#M120543</link>
    <description>&lt;P&gt;Your infile statement is incorrect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be of the form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile 'path to file including extension' dlm=' ' truncover;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your file reference comes after so try and move it up and see if that works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213398"&gt;@GAUTAMDVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Below is the code&amp;nbsp; of mine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_ ;
INFILE CRIME DSD;
INPUT	City : $18.
		Population
		Crime_index 
		Total_crime_index  
		MANM 
		Forcible_rape
		Robbery
		Aggravated_assault
		Burglary
		Larceny_theft
		Motor_vehicle_theft
		Arson ;
FILE  'LEARN.CRIME_STATS.TXT' ;
RUN ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and below is the error I'm getting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/LEARN.CRIME_STATS.TXT.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Jun 2018 18:58:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-06-17T18:58:28Z</dc:date>
    <item>
      <title>Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470886#M120532</link>
      <description>&lt;P&gt;In the raw Crime stats data file, change the delimiter from comma to space and then import the file into SAS (be careful about embedded space in the city name!)&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 16:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470886#M120532</guid>
      <dc:creator>GAUTAMDVN</dc:creator>
      <dc:date>2018-06-17T16:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470892#M120535</link>
      <description>&lt;P&gt;Please show your code and the log from it, if you get errors.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 16:36:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470892#M120535</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-17T16:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470897#M120538</link>
      <description>&lt;P&gt;What’s your question? That reads like a homework or test question - so show your work so far.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213398"&gt;@GAUTAMDVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In the raw Crime stats data file, change the delimiter from comma to space and then import the file into SAS (be careful about embedded space in the city name!)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 18:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470897#M120538</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-17T18:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470899#M120540</link>
      <description>&lt;P&gt;Below is the code&amp;nbsp; of mine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_ ;
INFILE CRIME DSD;
INPUT	City : $18.
		Population
		Crime_index 
		Total_crime_index  
		MANM 
		Forcible_rape
		Robbery
		Aggravated_assault
		Burglary
		Larceny_theft
		Motor_vehicle_theft
		Arson ;
FILE  'LEARN.CRIME_STATS.TXT' ;
RUN ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and below is the error I'm getting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/LEARN.CRIME_STATS.TXT.&lt;/STRONG&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Jun 2018 18:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470899#M120540</guid>
      <dc:creator>GAUTAMDVN</dc:creator>
      <dc:date>2018-06-17T18:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470902#M120543</link>
      <description>&lt;P&gt;Your infile statement is incorrect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be of the form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile 'path to file including extension' dlm=' ' truncover;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your file reference comes after so try and move it up and see if that works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213398"&gt;@GAUTAMDVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Below is the code&amp;nbsp; of mine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_ ;
INFILE CRIME DSD;
INPUT	City : $18.
		Population
		Crime_index 
		Total_crime_index  
		MANM 
		Forcible_rape
		Robbery
		Aggravated_assault
		Burglary
		Larceny_theft
		Motor_vehicle_theft
		Arson ;
FILE  'LEARN.CRIME_STATS.TXT' ;
RUN ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and below is the error I'm getting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/LEARN.CRIME_STATS.TXT.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 18:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470902#M120543</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-17T18:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470916#M120552</link>
      <description>&lt;P&gt;Hi, thanks for helping but no luck SAS log window showing the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/LEARN.CRIME_STATS.TXT.&lt;/STRONG&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470916#M120552</guid>
      <dc:creator>GAUTAMDVN</dc:creator>
      <dc:date>2018-06-17T19:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470920#M120555</link>
      <description>&lt;P&gt;Post your code and log again then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213398"&gt;@GAUTAMDVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, thanks for helping but no luck SAS log window showing the same error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/LEARN.CRIME_STATS.TXT.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470920#M120555</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-17T19:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470923#M120556</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213398"&gt;@GAUTAMDVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, thanks for helping but no luck SAS log window showing the same error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/LEARN.CRIME_STATS.TXT.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you do not specify an absolute path, SAS will look for the file in the current working directory. You have to specify a fully qualified path name starting at root.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470923#M120556</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-17T19:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470925#M120557</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213398"&gt;@GAUTAMDVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi, thanks for helping but no luck SAS log window showing the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/LEARN.CRIME_STATS.TXT.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then the path you provided is still not correct. Without seeing the code you submitted, i can just guess what went wrong.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470925#M120557</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2018-06-17T19:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470926#M120558</link>
      <description>Or compare your code to the one used in your other question. That one seems to reference the file correctly to read it in, use the same approach here.</description>
      <pubDate>Sun, 17 Jun 2018 19:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470926#M120558</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-17T19:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470927#M120559</link>
      <description>&lt;P&gt;Why do you have FILE statement without any PUT statements?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470927#M120559</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-17T19:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470928#M120560</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213398"&gt;@GAUTAMDVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In the raw Crime stats data file, change the delimiter from comma to space and then import the file into SAS (be careful about embedded space in the city name!)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sounds like they want a two step process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;change the delimiter from comma to space&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;&lt;SPAN&gt;import the file into SAS&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume the mean to use the output of the first task as the input to the second.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jun 2018 19:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/470928#M120560</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-17T19:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/471308#M120703</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213398"&gt;@GAUTAMDVN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Below is the code&amp;nbsp; of mine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_ ;
INFILE CRIME DSD;
INPUT	City : $18.
		Population
		Crime_index 
		Total_crime_index  
		MANM 
		Forcible_rape
		Robbery
		Aggravated_assault
		Burglary
		Larceny_theft
		Motor_vehicle_theft
		Arson ;
FILE  'LEARN.CRIME_STATS.TXT' ;
RUN ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and below is the error I'm getting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/LEARN.CRIME_STATS.TXT.&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This whole step serves no purpose. It reads some data from an external file, but does not out that anywhere.&lt;/P&gt;
&lt;P&gt;Since you have no put statement to write data to the external file named in the file statement, that statement is useless.&lt;/P&gt;
&lt;P&gt;If you want to read data from an external file into a dataset, you have to name that dataset in the data statement.&lt;/P&gt;
&lt;P&gt;So you should test this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile crime dsd;
input
  City : $18.
  Population
  Crime_index 
  Total_crime_index  
  MANM 
  Forcible_rape
  Robbery
  Aggravated_assault
  Burglary
  Larceny_theft
  Motor_vehicle_theft
  Arson
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and post the log from that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 06:01:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informats/m-p/471308#M120703</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-19T06:01:23Z</dc:date>
    </item>
  </channel>
</rss>

