<?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: Please help me to get the VARIABLE OF VARYING LENGTH in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469942#M120268</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215282"&gt;@Sathish_jammy&lt;/a&gt;&amp;nbsp; you can certainly make SAS read your data as is without touching your values but of course data is a bad data regardless.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 14:41:43 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-06-13T14:41:43Z</dc:date>
    <item>
      <title>Please help me to get the VARIABLE OF VARYING LENGTH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469869#M120239</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example2;&lt;BR /&gt;infile cards delimiter = ' ' dsd;&lt;BR /&gt;length Name $30;&lt;BR /&gt;input Name$ ID Score;&lt;BR /&gt;cards;&lt;BR /&gt;Deepanshu Bhalla 22 987&lt;BR /&gt;AttaPat 217 564&lt;BR /&gt;Xonxiangnam Samnuelnarayan 33 544&lt;BR /&gt;;&lt;BR /&gt;proc print noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Name ID Score &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Deepanshu Bhalla 22 987&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if i use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;length Name :$30; (the same partial O/P occur)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 10:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469869#M120239</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2018-06-13T10:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me to get the VARIABLE OF VARYING LENGTH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469873#M120242</link>
      <description>&lt;P&gt;You can't directly.&amp;nbsp; What you have here is bad data.&amp;nbsp; The reason it is bad is because the variables contain the "delimiter", which means there is no logical way to identify where a variable starts and where it finishes, hence it is bad data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This illustrates good data, where the delimiter is distinct:&lt;/P&gt;
&lt;PRE&gt;data example2;
  infile cards delimiter=',' dsd;
  length Name $30;
  input Name$ ID Score;
cards;
Deepanshu Bhalla,22,987
AttaPat,217,564
Xonxiangnam Samnuelnarayan,33,544
;
run;&lt;/PRE&gt;
&lt;P&gt;Personally I would send the data back with a fail note, and how to correct it.&amp;nbsp; Otherwise you will need to read in the data as text, then write some text parse statements to split it up as you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 10:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469873#M120242</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-13T10:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me to get the VARIABLE OF VARYING LENGTH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469942#M120268</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215282"&gt;@Sathish_jammy&lt;/a&gt;&amp;nbsp; you can certainly make SAS read your data as is without touching your values but of course data is a bad data regardless.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469942#M120268</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-13T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me to get the VARIABLE OF VARYING LENGTH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469948#M120270</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example2;
infile cards delimiter = ' ' ;
input @;
length Name $30;
Name=substr(_infile_,1, anydigit(_infile_)-1);
input @(anydigit(_infile_)) ID score;
cards;
Deepanshu Bhalla 22 987
AttaPat 217 564
Xonxiangnam Samnuelnarayan 33 544
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-me-to-get-the-VARIABLE-OF-VARYING-LENGTH/m-p/469948#M120270</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-13T14:55:36Z</dc:date>
    </item>
  </channel>
</rss>

