<?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: Creating new variable... in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699543#M25623</link>
    <description>&lt;P&gt;The LEGNTH Statement (before the SET) allows you to define the length of some/all of the variables, and will permanently reset the length in your PDV and data set Iif you rearrange the variables in this LENGTH statement, it will also re-order your variables!). If you put the LENGTH statement after the set statement, it will not change the length in the PDV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ATTRIB ("attributes") assigns many items to each variable assigned, such as Format, informat, length, Label, and transcode(Y/N).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here are links to helpful SAS documentation:&amp;nbsp;&lt;A title="Attrib Statement" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n1wxb7p9jkxycin16lz2db7idbnt.htm&amp;amp;locale=en" target="_self"&gt;Attrib Statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Length Statement" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=p1hgqgmxm3dpqcn1d4w5za5qbz0d.htm&amp;amp;locale=en" target="_self"&gt;Length Statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 15:44:11 GMT</pubDate>
    <dc:creator>lsandell</dc:creator>
    <dc:date>2020-11-17T15:44:11Z</dc:date>
    <item>
      <title>SAS class R</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699247#M25589</link>
      <description />
      <pubDate>Tue, 26 Jan 2021 13:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699247#M25589</guid>
      <dc:creator>RuthE</dc:creator>
      <dc:date>2021-01-26T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new variable...</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699255#M25590</link>
      <description>&lt;P&gt;Length only lets you set one characteristic, the length. Attrib will let you set other properties like Informat, Format and Label as well as the length.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 18:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699255#M25590</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-16T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new variable...</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699522#M25621</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344793"&gt;@RuthE&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the difference between using ATTRIB statement and LENGTH statement when creating a new variable from existing variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ruth&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello Ruth,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not sure what you mean with "creating a new variable&lt;STRONG&gt; from existing variable&lt;/STRONG&gt;"?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 14:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699522#M25621</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-11-17T14:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new variable...</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699543#M25623</link>
      <description>&lt;P&gt;The LEGNTH Statement (before the SET) allows you to define the length of some/all of the variables, and will permanently reset the length in your PDV and data set Iif you rearrange the variables in this LENGTH statement, it will also re-order your variables!). If you put the LENGTH statement after the set statement, it will not change the length in the PDV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ATTRIB ("attributes") assigns many items to each variable assigned, such as Format, informat, length, Label, and transcode(Y/N).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here are links to helpful SAS documentation:&amp;nbsp;&lt;A title="Attrib Statement" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n1wxb7p9jkxycin16lz2db7idbnt.htm&amp;amp;locale=en" target="_self"&gt;Attrib Statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Length Statement" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=p1hgqgmxm3dpqcn1d4w5za5qbz0d.htm&amp;amp;locale=en" target="_self"&gt;Length Statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 15:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-class-R/m-p/699543#M25623</guid>
      <dc:creator>lsandell</dc:creator>
      <dc:date>2020-11-17T15:44:11Z</dc:date>
    </item>
  </channel>
</rss>

