<?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 Processing datalines longer than 6000 characters in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659626#M22688</link>
    <description>&lt;P&gt;Submitted code contains lines longer than 6000 characters. SAS is unable to process lines longer than 6000 characters. Your submission has been aborted.&lt;BR /&gt;&lt;BR /&gt;important for my uses, however, are only the first 120 characters of each line anyway. Is there a way I can tell SAS to only run as many characters in a data line as it is able, and simply missover the rest?&lt;BR /&gt;&lt;BR /&gt;A code sample is as follows:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;options ls=250 /*NOCARDIMAGE*/;&lt;BR /&gt;data testing;&lt;BR /&gt;length reading $120.;&lt;BR /&gt;input reading $ &amp;amp;&amp;amp;;&lt;BR /&gt;cards;&lt;BR /&gt;[1] Some Social Requisites of Democracy: Economic Development and Political Legitimacy Seymour Martin Lipset , 53, 1 (Mar., 1959), 69-105n AssociationnStable /1951731 .15:57nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n Association is collaborating with&lt;BR /&gt;[2] An Economic Theory of Alliancesn Mancur Olson, Jr. and Richard Zeckhausern The Review of Economics and Statistics, 48, 3 (Aug., 1966), 266-279n The MIT PressnStable /1927082 .15:12nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n The MIT Press is collaborating with to digitize, preserve and extend access to The Review ofn Economics and&lt;BR /&gt;[3] Pressure Groups and the Pattern of Tariffsn J. J. Pincusn of Political Economy, 83, 4 (Aug., 1975), 757-778n The University of Chicago PressnStable /1830398 .14:47nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n The University of Chicago Press is collaborating with to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc contents;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;&lt;BR /&gt;Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2020 06:44:02 GMT</pubDate>
    <dc:creator>playitforward</dc:creator>
    <dc:date>2020-06-16T06:44:02Z</dc:date>
    <item>
      <title>Processing datalines longer than 6000 characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659626#M22688</link>
      <description>&lt;P&gt;Submitted code contains lines longer than 6000 characters. SAS is unable to process lines longer than 6000 characters. Your submission has been aborted.&lt;BR /&gt;&lt;BR /&gt;important for my uses, however, are only the first 120 characters of each line anyway. Is there a way I can tell SAS to only run as many characters in a data line as it is able, and simply missover the rest?&lt;BR /&gt;&lt;BR /&gt;A code sample is as follows:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;options ls=250 /*NOCARDIMAGE*/;&lt;BR /&gt;data testing;&lt;BR /&gt;length reading $120.;&lt;BR /&gt;input reading $ &amp;amp;&amp;amp;;&lt;BR /&gt;cards;&lt;BR /&gt;[1] Some Social Requisites of Democracy: Economic Development and Political Legitimacy Seymour Martin Lipset , 53, 1 (Mar., 1959), 69-105n AssociationnStable /1951731 .15:57nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n Association is collaborating with&lt;BR /&gt;[2] An Economic Theory of Alliancesn Mancur Olson, Jr. and Richard Zeckhausern The Review of Economics and Statistics, 48, 3 (Aug., 1966), 266-279n The MIT PressnStable /1927082 .15:12nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n The MIT Press is collaborating with to digitize, preserve and extend access to The Review ofn Economics and&lt;BR /&gt;[3] Pressure Groups and the Pattern of Tariffsn J. J. Pincusn of Political Economy, 83, 4 (Aug., 1975), 757-778n The University of Chicago PressnStable /1830398 .14:47nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n The University of Chicago Press is collaborating with to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc contents;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;&lt;BR /&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 06:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659626#M22688</guid>
      <dc:creator>playitforward</dc:creator>
      <dc:date>2020-06-16T06:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Processing datalines longer than 6000 characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659630#M22689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about setting the proper length first:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;length reading $ &lt;STRONG&gt;6000&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All the best&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Bart&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 06:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659630#M22689</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-06-16T06:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Processing datalines longer than 6000 characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659637#M22690</link>
      <description>&lt;P&gt;In your data there are lines starting as:&lt;/P&gt;
&lt;PRE&gt;[1] Some Social Requisites of Democracy: .......
[2] An Economic Theory of Alliancesn Mancur Olson,...........
[3] Pressure Groups and the Pattern of ....&lt;/PRE&gt;
&lt;P&gt;are those numbers [1], [2], ... part of the data or just added for test?&lt;/P&gt;
&lt;P&gt;Would you use '[' as a delimiter between data-lines?&lt;/P&gt;
&lt;P&gt;On what OS is SAS installed? and what are the file attributes - block length, record length? is it a record fix length or a record variable length?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;beyond, have you tried reading the file by code like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   infile "&amp;lt;path and name&amp;gt;" truncover ;
   input start_line $char120.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jun 2020 07:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659637#M22690</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-06-16T07:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Processing datalines longer than 6000 characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659644#M22691</link>
      <description>&lt;P&gt;I would never swamp my code with so much data. It is much easier to keep the text in a separate text file and read it from there with a proper lrecl.&lt;/P&gt;
&lt;P&gt;SAS has certain limits when reading code from a program file and the Enhanced Editor, see&amp;nbsp;&lt;A href="https://support.sas.com/kb/15/883.html" target="_blank" rel="noopener"&gt;Usage Note 15883&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS I found the Usage Note by doing a Google search for "&lt;SPAN&gt;Submitted code contains lines longer than 6000 characters"; see Maxim 6.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 08:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/659644#M22691</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-16T08:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Processing datalines longer than 6000 characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/666763#M22989</link>
      <description>&lt;P&gt;Thank you for the tips! Helped a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 08:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/666763#M22989</guid>
      <dc:creator>playitforward</dc:creator>
      <dc:date>2020-07-03T08:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Processing datalines longer than 6000 characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/800969#M33195</link>
      <description>&lt;P&gt;Pasting your code works fine for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options ls=250 /*NOCARDIMAGE*/;
data testing;
length reading $120.;
input reading $ &amp;amp;&amp;amp;;
cards;
[1] Some Social Requisites of Democracy: Economic Development and Political Legitimacy Seymour Martin Lipset , 53, 1 (Mar., 1959), 69-105n AssociationnStable /1951731 .15:57nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n Association is collaborating with
[2] An Economic Theory of Alliancesn Mancur Olson, Jr. and Richard Zeckhausern The Review of Economics and Statistics, 48, 3 (Aug., 1966), 266-279n The MIT PressnStable /1927082 .15:12nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n The MIT Press is collaborating with to digitize, preserve and extend access to The Review ofn Economics and
[3] Pressure Groups and the Pattern of Tariffsn J. J. Pincusn of Political Economy, 83, 4 (Aug., 1975), 757-778n The University of Chicago PressnStable /1830398 .14:47nYour use of the archive indicates your acceptance of the Terms &amp;amp; Conditions of Use, available at .n/page/info/about/policies/terms.jspn .n is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range ofncontent in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new formsnof scholarship. For more information about , please contact support@.n .n The University of Chicago Press is collaborating with to
;
proc contents;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;25         options ls=250 /*NOCARDIMAGE*/;
26         data testing;
27         length reading $120.;
28         input reading $ &amp;amp;&amp;amp;;
29         cards;

NOTE: The data set WORK.TESTING has 3 observations and 1 variables.
NOTE: Compressing data set WORK.TESTING increased size by 100.00 percent. 
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_0-1646788833356.png" style="width: 900px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69265iA4CB396F247CDE3C/image-dimensions/900x141?v=v2" width="900" height="141" role="button" title="ChrisNZ_0-1646788833356.png" alt="ChrisNZ_0-1646788833356.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 01:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/800969#M33195</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-03-09T01:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Processing datalines longer than 6000 characters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/800992#M33196</link>
      <description>&lt;P&gt;Don't do that. Why would you even think to try to do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put the source text into a text file and read it from there.&lt;/P&gt;
&lt;P&gt;In-line data is for small things that you can actually put in-line in your program.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 04:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Processing-datalines-longer-than-6000-characters/m-p/800992#M33196</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-09T04:42:27Z</dc:date>
    </item>
  </channel>
</rss>

