<?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: proc content out put position in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327262#M62383</link>
    <description>&lt;P&gt;Could you please explain me how sas is defining the variable position. For reff kindly go through the attached doc.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13361iB6781886E00D73F5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="proc content out pur.png" title="proc content out pur.png" /&gt;</description>
    <pubDate>Wed, 25 Jan 2017 07:26:49 GMT</pubDate>
    <dc:creator>mrinmoy</dc:creator>
    <dc:date>2017-01-25T07:26:49Z</dc:date>
    <item>
      <title>proc content out put position</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327258#M62381</link>
      <description>&lt;P&gt;Can any body help me out what is POS in the proc content out put and how system define the position the variable&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13360iBE7E95237D91C173/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="proc content out pur.png" title="proc content out pur.png" /&gt;</description>
      <pubDate>Wed, 25 Jan 2017 06:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327258#M62381</guid>
      <dc:creator>mrinmoy</dc:creator>
      <dc:date>2017-01-25T06:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc content out put position</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327260#M62382</link>
      <description>&lt;P&gt;POS is the starting position of the variable within the record (file observation).&lt;/P&gt;
&lt;P&gt;Mainly you need no to care about it and it may change with data manipulation.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 06:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327260#M62382</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-25T06:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc content out put position</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327262#M62383</link>
      <description>&lt;P&gt;Could you please explain me how sas is defining the variable position. For reff kindly go through the attached doc.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13361iB6781886E00D73F5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="proc content out pur.png" title="proc content out pur.png" /&gt;</description>
      <pubDate>Wed, 25 Jan 2017 07:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327262#M62383</guid>
      <dc:creator>mrinmoy</dc:creator>
      <dc:date>2017-01-25T07:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc content out put position</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327274#M62384</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's the physical position inside the dataset file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change this, one easy way is to recreate the table with PROC SQL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc sql noprint;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;create table TAB as&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;select COL1, COL2, COL3, ... from TAB;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327274#M62384</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2017-01-25T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc content out put position</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327276#M62385</link>
      <description>&lt;P&gt;Counting positions start with 0.&lt;/P&gt;
&lt;P&gt;- 1st variable&amp;nbsp;is &lt;STRONG&gt;AGE&lt;/STRONG&gt; starting &lt;STRONG&gt;POS&lt;/STRONG&gt;=0 with &lt;STRONG&gt;length&lt;/STRONG&gt;=8&lt;/P&gt;
&lt;P&gt;- 2nd variable need start at &lt;STRONG&gt;pos&lt;/STRONG&gt;=8 (=0+8) &amp;nbsp;is &lt;STRONG&gt;balance&lt;/STRONG&gt; with &lt;STRONG&gt;length&lt;/STRONG&gt;=8.&lt;/P&gt;
&lt;P&gt;- 3rd variable need start at &lt;STRONG&gt;pos&lt;/STRONG&gt;=16 (=8+8) is &lt;STRONG&gt;day&amp;nbsp;&lt;/STRONG&gt;with&amp;nbsp;&lt;STRONG&gt;length&lt;/STRONG&gt;=8.&lt;/P&gt;
&lt;P&gt;- 4th variable need start at&amp;nbsp;&lt;STRONG&gt;pos&lt;/STRONG&gt;=24 (=16+8) is&amp;nbsp;&lt;STRONG&gt;duration&lt;/STRONG&gt; with &lt;STRONG&gt;length&lt;/STRONG&gt;=8&lt;/P&gt;
&lt;P&gt;As you can see, all numeric variables are length 8 and appear at the beginning of the record.&lt;/P&gt;
&lt;P&gt;The 1st character variable is&amp;nbsp;&lt;STRONG&gt;job&lt;/STRONG&gt; starting&amp;nbsp;&lt;STRONG&gt;pos&lt;/STRONG&gt;=56 with &lt;STRONG&gt;length&lt;/STRONG&gt;=16,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so next char variable need start at&amp;nbsp;&lt;STRONG&gt;pos&lt;/STRONG&gt;=72 (=56+16) ...etc&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327276#M62385</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-25T08:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc content out put position</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327281#M62386</link>
      <description>&lt;P&gt;First of all thanks a lot for your specific reply&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you telling that in proc content output the variable order is showing alphabaticaly but machine read first numarical variable then it reads char var. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327281#M62386</guid>
      <dc:creator>mrinmoy</dc:creator>
      <dc:date>2017-01-25T08:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc content out put position</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327283#M62388</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could it be that what you are&amp;nbsp;looking for is the ORDER= option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/community/newsletters/news/techtips/OrderOption.html" target="_blank"&gt;https://support.sas.com/community/newsletters/news/techtips/OrderOption.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327283#M62388</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2017-01-25T08:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc content out put position</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327293#M62389</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125314"&gt;@mrinmoy&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;First of all thanks a lot for your specific reply&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you telling that in proc content output the variable order is showing alphabaticaly but machine read first numarical variable then it reads char var. &amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is how SAS stores variables within a dataset observation.&lt;/P&gt;
&lt;P&gt;First come 8-byte and 4-byte numeric variables. This is done so that most numeric variables align with 4- or 8-byte boundaries, which makes moving them in memory more efficient.&lt;/P&gt;
&lt;P&gt;Then come the other numeric variables (length = 3,5,6,7), then the strings.&lt;/P&gt;
&lt;P&gt;SAS keeps a logical sequence of variables (the VARNUM), which corresponds to the sequence in which variables appeared when the dataset was created. This is either the sequence in which the datastep compiler encountered the variables when compiling the code and setting up the PDV, or the sequence of variables in a select in proc sql. This sequence is used for displaying, proc print etc.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 09:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-content-out-put-position/m-p/327293#M62389</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-25T09:07:40Z</dc:date>
    </item>
  </channel>
</rss>

