<?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: understanding sas base question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584976#M166733</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286801"&gt;@shubhamtiwari&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; than you for the reply, but still i did not understood the meaning of those numbers&amp;nbsp; 1,10,20,30&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;
&lt;P&gt;&lt;SPAN&gt;1--+----10---+----20---+----30&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;&lt;SPAN&gt;what if we have like this 5--+----15---+----19---+----44&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;&lt;SPAN&gt;here what does these numbers 5,15,19,44 represent?&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;&lt;SPAN&gt;Please elaborate. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;1---+----10---+----20---+----30
2STORY   5500 7 MUMBAI71 NEW
         111111111122222222223
123456789012345678901234567890&lt;/PRE&gt;
&lt;P&gt;The 3rd and 4th rows expand on the idea. Again important is to view things with a fixed width font&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;P&gt;above indicates position number 10, of&amp;nbsp;the first 5 in second row, The + are the values ending in 5 such as 15, 25&lt;/P&gt;
&lt;P&gt;Position 20 is the B in Mumbai.&lt;/P&gt;
&lt;P&gt;it is only a tool for counting columns. Nothing magic or difficult.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 15:58:42 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-08-29T15:58:42Z</dc:date>
    <item>
      <title>understanding sas base question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584432#M166462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to understand the following question,&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;Which SAS statement correctly uses column input to read the values in the raw data file below in this order: Address (4th field), SquareFeet (second field), Style (first field),&lt;BR /&gt;Bedrooms (third field)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1--+----10---+----20---+----30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2STORY&amp;nbsp; &amp;nbsp;5500 7 MUMBAI71 NEW&lt;/P&gt;&lt;P&gt;ALATE&amp;nbsp; &amp;nbsp; &amp;nbsp; 2200 4 RANE STREET&lt;/P&gt;&lt;P&gt;MONTE&amp;nbsp; &amp;nbsp; 5200 3 MUKESH STREET&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. input Address 15-29 SquareFeet 8-11 Style 1-6&lt;BR /&gt;Bedrooms 13;&lt;BR /&gt;2. input $ 15-29 Address 8-11 SquareFeet $ 1-6 Style&lt;BR /&gt;13 Bedrooms;&lt;BR /&gt;3. input Address $ 15-29 SquareFeet 8-11 Style $ 1-6&lt;BR /&gt;Bedrooms 13;&lt;BR /&gt;4. input Address 15-29 $ SquareFeet 8-11 Style 1-6&lt;BR /&gt;$ Bedrooms 13;&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;&lt;P&gt;Doubt=&amp;nbsp; what is the&amp;nbsp; 1--+----10---+----20---+----30 means in the question?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 05:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584432#M166462</guid>
      <dc:creator>shubhamtiwari</dc:creator>
      <dc:date>2019-08-28T05:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: understanding sas base question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584443#M166464</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286801"&gt;@shubhamtiwari&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me to understand the following question,&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;Which SAS statement correctly uses column input to read the values in the raw data file below in this order: Address (4th field), SquareFeet (second field), Style (first field),&lt;BR /&gt;Bedrooms (third field)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1--+----10---+----20---+----30&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2STORY&amp;nbsp; &amp;nbsp;5500 7 MUMBAI71 NEW&lt;/P&gt;
&lt;P&gt;ALATE&amp;nbsp; &amp;nbsp; &amp;nbsp; 2200 4 RANE STREET&lt;/P&gt;
&lt;P&gt;MONTE&amp;nbsp; &amp;nbsp; 5200 3 MUKESH STREET&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. input Address 15-29 SquareFeet 8-11 Style 1-6&lt;BR /&gt;Bedrooms 13;&lt;BR /&gt;2. input $ 15-29 Address 8-11 SquareFeet $ 1-6 Style&lt;BR /&gt;13 Bedrooms;&lt;BR /&gt;3. input Address $ 15-29 SquareFeet 8-11 Style $ 1-6&lt;BR /&gt;Bedrooms 13;&lt;BR /&gt;4. input Address 15-29 $ SquareFeet 8-11 Style 1-6&lt;BR /&gt;$ Bedrooms 13;&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;
&lt;P&gt;Doubt=&amp;nbsp; what is the&amp;nbsp; 1--+----10---+----20---+----30 means in the question?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This line is just a ruler for horizontal orientation. It becomes more useful when viewed with a fixed-space font:&lt;/P&gt;
&lt;PRE&gt;1---+----10---+----20---+----30

2STORY&amp;nbsp;5500 7 MUMBAI71 NEW
ALATE&amp;nbsp; 2200 4 RANE STREET
MONTE&amp;nbsp; 5200 3 MUKESH STREET&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Aug 2019 07:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584443#M166464</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-28T07:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: understanding sas base question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584519#M166504</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; than you for the reply, but still i did not understood the meaning of those numbers&amp;nbsp; 1,10,20,30&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;&lt;P&gt;&lt;SPAN&gt;1--+----10---+----20---+----30&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;&lt;SPAN&gt;what if we have like this 5--+----15---+----19---+----44&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;&lt;SPAN&gt;here what does these numbers 5,15,19,44 represent?&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;&lt;SPAN&gt;Please elaborate. &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, 28 Aug 2019 12:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584519#M166504</guid>
      <dc:creator>shubhamtiwari</dc:creator>
      <dc:date>2019-08-28T12:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: understanding sas base question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584525#M166506</link>
      <description>&lt;P&gt;1 is position 1 in the input line.&lt;/P&gt;
&lt;P&gt;The "1" of "10" marks position 10 (the "0" is therefore position 11), and so on.&lt;/P&gt;
&lt;P&gt;Only the 10s are been marked like that, so you won't see 5 or 15. This is also close to the way SAS puts a ruler into the log when it shows external data being read by a data step.&lt;/P&gt;
&lt;P&gt;Run this code for reference:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename test temp;

data _null_;
file test;
put "12345";
put "67890";
run;

data _null_;
infile test;
input;
list;
run;

filename test clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and read the log.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584525#M166506</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-28T12:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: understanding sas base question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584529#M166508</link>
      <description>&lt;P&gt;Just to clarify: the ruler line is NOT part of the data, it is there only to make finding a start position for reading a variable easier.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584529#M166508</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-28T12:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: understanding sas base question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584976#M166733</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286801"&gt;@shubhamtiwari&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; than you for the reply, but still i did not understood the meaning of those numbers&amp;nbsp; 1,10,20,30&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;
&lt;P&gt;&lt;SPAN&gt;1--+----10---+----20---+----30&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;&lt;SPAN&gt;what if we have like this 5--+----15---+----19---+----44&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;&lt;SPAN&gt;here what does these numbers 5,15,19,44 represent?&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;&lt;SPAN&gt;Please elaborate. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;1---+----10---+----20---+----30
2STORY   5500 7 MUMBAI71 NEW
         111111111122222222223
123456789012345678901234567890&lt;/PRE&gt;
&lt;P&gt;The 3rd and 4th rows expand on the idea. Again important is to view things with a fixed width font&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;P&gt;above indicates position number 10, of&amp;nbsp;the first 5 in second row, The + are the values ending in 5 such as 15, 25&lt;/P&gt;
&lt;P&gt;Position 20 is the B in Mumbai.&lt;/P&gt;
&lt;P&gt;it is only a tool for counting columns. Nothing magic or difficult.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 15:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-sas-base-question/m-p/584976#M166733</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-29T15:58:42Z</dc:date>
    </item>
  </channel>
</rss>

