<?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: DATALINES with long strings in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/928957#M365530</link>
    <description>&lt;P&gt;Many thanks for that explanation! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 19 May 2024 20:11:20 GMT</pubDate>
    <dc:creator>cottons23</dc:creator>
    <dc:date>2024-05-19T20:11:20Z</dc:date>
    <item>
      <title>DATALINES with long strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924872#M364028</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a situation where I need to create a dataset with some long free text. Is there a way to force SAS to read the below correctly beyond the 80th column? Works well if PARAMETER was limited to 80th column, beyond that it gets messed up. Also, MISSOVER option didn't solve the issue.&amp;nbsp; Output of below code shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;data test;&lt;/DIV&gt;&lt;DIV&gt;/* infile datalines missover;*/&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;input ord 1-2 _NAME_ $ 4-5 PARAMETER $ 7-185;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cards;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;1&amp;nbsp; A&amp;nbsp; text here text here&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2&amp;nbsp; B&amp;nbsp; text here text here text here text here text here text here&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;3&amp;nbsp; C&amp;nbsp; text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here&lt;/DIV&gt;&lt;DIV&gt;4&amp;nbsp; D&amp;nbsp; text here&lt;/DIV&gt;&lt;DIV&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cottons23_1-1713458740520.png" style="width: 1081px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95659i4A1D4EA75C031A67/image-dimensions/1081x114?v=v2" width="1081" height="114" role="button" title="cottons23_1-1713458740520.png" alt="cottons23_1-1713458740520.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cottons23_0-1713458417569.png" style="width: 756px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95658i34162F0C91CCD0E4/image-dimensions/756x135?v=v2" width="756" height="135" role="button" title="cottons23_0-1713458417569.png" alt="cottons23_0-1713458417569.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 16:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924872#M364028</guid>
      <dc:creator>cottons23</dc:creator>
      <dc:date>2024-04-18T16:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: DATALINES with long strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924893#M364040</link>
      <description>&lt;P&gt;Add&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile datalines truncover;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to override the default FLOWOVER option.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 18:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924893#M364040</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-04-18T18:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: DATALINES with long strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924940#M364050</link>
      <description>&lt;P&gt;I got no problem with your code.&lt;/P&gt;
&lt;P&gt;But you could also try this alternative code .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

options parmcards=x;
filename x temp;
parmcards;
1  A  text here text here 
2  B  text here text here text here text here text here text here 
3  C  text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here xx
4  D  text here
;

data test;
infile x lrecl=32767 truncover;
input ord 1-2 _NAME_ $ 4-5 PARAMETER $ 7-200;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Apr 2024 03:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924940#M364050</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-19T03:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: DATALINES with long strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924942#M364051</link>
      <description>&lt;P&gt;That is because there are very few situations where you ever would want to use the ancient MISSOVER option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead you should always use the modern (probably more than 30 years old) TRUNCOVER option when you don't want the default FLOWOVER option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason you would use MISSOVER in this situation is when you want SAS to IGNORE anything in columns 7 to 185 that does not completely fill all 179 bytes with something.&amp;nbsp; And since in-line data is padded to use the next multiple of 80 bytes that means that to avoid losing data when using MISSOVER with your code each line would have to have at least 161 bytes.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 04:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924942#M364051</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-19T04:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: DATALINES with long strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924982#M364066</link>
      <description>Perfect, than you!</description>
      <pubDate>Fri, 19 Apr 2024 11:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924982#M364066</guid>
      <dc:creator>cottons23</dc:creator>
      <dc:date>2024-04-19T11:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: DATALINES with long strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924983#M364067</link>
      <description>Thanks this also fixes my problem</description>
      <pubDate>Fri, 19 Apr 2024 11:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/924983#M364067</guid>
      <dc:creator>cottons23</dc:creator>
      <dc:date>2024-04-19T11:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: DATALINES with long strings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/928957#M365530</link>
      <description>&lt;P&gt;Many thanks for that explanation! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 20:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATALINES-with-long-strings/m-p/928957#M365530</guid>
      <dc:creator>cottons23</dc:creator>
      <dc:date>2024-05-19T20:11:20Z</dc:date>
    </item>
  </channel>
</rss>

