<?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: #n Line Pointer Control in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132440#M1840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are concerned about the order variables appear in the dataset for your purpose the easiest would be to place format statements before the input.&lt;/P&gt;&lt;P&gt;Format Supplier $25. Rate 4.0 State $15. Vname $15. Frequency $10.;&lt;/P&gt;&lt;P&gt;Input ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2013 15:16:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-11-04T15:16:40Z</dc:date>
    <item>
      <title>#n Line Pointer Control</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132439#M1839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using non-sequential #n line pointer control to read following data, where one observation needs to be created out of three records: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN style="background-color: #cfe2f3; font-family: 'Courier New', Courier, monospace;"&gt;ROMA TOMATO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN style="background-color: #cfe2f3; font-family: 'Courier New', Courier, monospace;"&gt;FRESHPOINT CA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN style="background-color: #cfe2f3; font-family: 'Courier New', Courier, monospace;"&gt;1.80 DAILY&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN style="background-color: #cfe2f3; font-family: 'Courier New', Courier, monospace;"&gt;GREEN BEANS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN style="background-color: #cfe2f3; font-family: 'Courier New', Courier, monospace;"&gt;ORGANICS NC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN style="background-color: #cfe2f3; font-family: 'Courier New', Courier, monospace;"&gt;1.20 WEEKLY&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN style="background-color: #cfe2f3; font-family: 'Courier New', Courier, monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 14px; text-align: justify; background-color: #ffffff;"&gt;Sequence of variables stored in data set has to be as follows:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;Supplier (FRESHPOINT)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;State (CA)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;Rate (1.8)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;Frequency (DAILY)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;VName (ROMA TOMATO)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; text-align: justify; background-color: #ffffff; color: #0b5394; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;data produce.vegetables;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; text-align: justify; background-color: #ffffff; color: #0b5394; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile vegdata;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; text-align: justify; background-color: #ffffff; color: #0b5394; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input #2 Supplier $ State $&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; text-align: justify; background-color: #ffffff; color: #0b5394; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #3 Rate 4. Frequency $&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; text-align: justify; background-color: #ffffff; color: #0b5394; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #1 VName;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; text-align: justify; background-color: #ffffff; color: #0b5394; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; text-align: justify; background-color: #ffffff; color: #0b5394; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; text-align: justify; font-size: 14px; background-color: #ffffff; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;However, how do I change sequence of variables to&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; text-align: justify; font-size: 14px; background-color: #ffffff; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; text-align: justify; font-size: 14px; background-color: #ffffff; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;Supplier&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; text-align: justify; font-size: 14px; background-color: #ffffff; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;Rate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; text-align: justify; font-size: 14px; background-color: #ffffff; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;State&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; text-align: justify; font-size: 14px; background-color: #ffffff; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;VName&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; text-align: justify; font-size: 14px; background-color: #ffffff; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;Frequency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #333333; text-align: justify; font-size: 14px; background-color: #ffffff; font-family: 'Courier New', Courier, monospace;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks much,&lt;/P&gt;&lt;P&gt;Dhanashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132439#M1839</guid>
      <dc:creator>noobs</dc:creator>
      <dc:date>2013-11-04T15:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: #n Line Pointer Control</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132440#M1840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are concerned about the order variables appear in the dataset for your purpose the easiest would be to place format statements before the input.&lt;/P&gt;&lt;P&gt;Format Supplier $25. Rate 4.0 State $15. Vname $15. Frequency $10.;&lt;/P&gt;&lt;P&gt;Input ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132440#M1840</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-11-04T15:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: #n Line Pointer Control</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132441#M1841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define the variables before the INPUT statement.&amp;nbsp; Probably a good practice anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: justify; color: #0b5394; font-size: 14px; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;data produce.vegetables;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: justify; color: #0b5394; font-size: 14px; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; length supplier $20 state $2 rate 8 vname $50 frequency $12 ;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: justify; color: #0b5394; font-size: 14px; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; infile vegdata truncover ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: justify; color: #0b5394; font-size: 14px; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; input vname $50.&amp;nbsp;&amp;nbsp; /* Useful to use a format to allow for spaces in the names */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: justify; color: #0b5394; font-size: 14px; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / Supplier State&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: justify; color: #0b5394; font-size: 14px; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / Rate&amp;nbsp; Frequency &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="text-align: justify; color: #0b5394; font-size: 14px; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #0b5394; font-family: 'courier new', courier; font-size: 14px; font-style: inherit; text-align: justify; line-height: 1.5em;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132441#M1841</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-04T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: #n Line Pointer Control</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132442#M1842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, using FORMAT statement is good practice and I will use it, however will it resolve issue of reading State variable correctly because it is preceded by Supplier variable which is not fixed length, hence one cannot use column pointer @?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format Supplier $25. Rate 3.1 State $2. VName $15. Frequency $10.;&lt;/P&gt;&lt;P&gt;input #2 Supplier &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #3 Rate &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #2 State&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #1 VName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #3 @6 Frequency; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading Frequency with @6 is possible as Rate will always be fixed width 3 with n.n format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in INPUT statement, when using #2 State will it not create problem as pointer may not be placed at right column always for every record? Is there any other solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132442#M1842</guid>
      <dc:creator>noobs</dc:creator>
      <dc:date>2013-11-05T14:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: #n Line Pointer Control</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132443#M1843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORMAT statements do NOT define the variables other than in the same way that SAS will guess what type of variable to define based on how it is first used.&amp;nbsp; To define the variable you will get better results using LENGTH or ATTRIB statement to clearly define them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/n-Line-Pointer-Control/m-p/132443#M1843</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-05T14:59:50Z</dc:date>
    </item>
  </channel>
</rss>

