<?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 informat $varying10. length-variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/informat-varying10-length-variable/m-p/157677#M12271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys i am trying to read below data with 3 variables (ssn (length=11), name(length=8), satscore(length=3)) but i am not perfectly getting right values for "satscrore" variable plz help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2 (drop=namelen);&lt;/P&gt;&lt;P&gt;infile cards length=reclen;&lt;/P&gt;&lt;P&gt;input ssn $11. @;&lt;/P&gt;&lt;P&gt;namelen=reclen-14;&lt;/P&gt;&lt;P&gt;input name $varying8. namelen satscore;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;182-04-7814aspden530&lt;/P&gt;&lt;P&gt;302-57-5067atwood480&lt;/P&gt;&lt;P&gt;152-45-5678cutchins790&lt;/P&gt;&lt;P&gt;302-57-1234brosp560&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 21:24:10 GMT</pubDate>
    <dc:creator>woo</dc:creator>
    <dc:date>2013-11-27T21:24:10Z</dc:date>
    <item>
      <title>informat $varying10. length-variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/informat-varying10-length-variable/m-p/157677#M12271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys i am trying to read below data with 3 variables (ssn (length=11), name(length=8), satscore(length=3)) but i am not perfectly getting right values for "satscrore" variable plz help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2 (drop=namelen);&lt;/P&gt;&lt;P&gt;infile cards length=reclen;&lt;/P&gt;&lt;P&gt;input ssn $11. @;&lt;/P&gt;&lt;P&gt;namelen=reclen-14;&lt;/P&gt;&lt;P&gt;input name $varying8. namelen satscore;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;182-04-7814aspden530&lt;/P&gt;&lt;P&gt;302-57-5067atwood480&lt;/P&gt;&lt;P&gt;152-45-5678cutchins790&lt;/P&gt;&lt;P&gt;302-57-1234brosp560&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 21:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/informat-varying10-length-variable/m-p/157677#M12271</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2013-11-27T21:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: informat $varying10. length-variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/informat-varying10-length-variable/m-p/157678#M12272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't dug deep enough to find the related Docs, but my guess is length= is only work with external files, not with cards/datalines (fixed length of 80 will be assigned),&amp;nbsp; So you have to get it yourself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2 (drop=namelen reclen);&lt;/P&gt;&lt;P&gt;infile cards;&lt;/P&gt;&lt;P&gt;input ssn $11. @;&lt;/P&gt;&lt;P&gt;reclen=length(_infile_);&lt;/P&gt;&lt;P&gt;namelen=reclen-14;&lt;/P&gt;&lt;P&gt;input name $varying8. namelen satscore;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;182-04-7814aspden530&lt;/P&gt;&lt;P&gt;302-57-5067atwood480&lt;/P&gt;&lt;P&gt;152-45-5678cutchins790&lt;/P&gt;&lt;P&gt;302-57-1234brosp560&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 21:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/informat-varying10-length-variable/m-p/157678#M12272</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-11-27T21:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: informat $varying10. length-variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/informat-varying10-length-variable/m-p/157679#M12273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CARDS data is, well, like cards FIXED length.&amp;nbsp; If you want an in-stream file that is variable lenght you can use PARMCARDS.&amp;nbsp; These data are loaded into an actual file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; FT15F001 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;temp&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test2;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;* (drop=nameen);&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; FT15F001 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=reclen;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ssn &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$11.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; @;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; namelen=reclen-&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;14&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; name &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$varying8.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; namelen satscore;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;parmcards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;182&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;04&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-7814aspden530&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;302&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;57&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-5067atwood480&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;152&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;45&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-5678cutchins790&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;302&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;57&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;-1234brosp560&lt;BR /&gt;;;;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;print&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 22:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/informat-varying10-length-variable/m-p/157679#M12273</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-11-27T22:21:01Z</dc:date>
    </item>
  </channel>
</rss>

