<?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 Access variable lengths in a data step? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Access-variable-lengths-in-a-data-step/m-p/635676#M188775</link>
    <description>&lt;P&gt;I need to automate using put to display information including data values and to align them using&amp;nbsp;@. There are too many to do manually so it seems I need to be able to get the length of the variable so I can align each column when printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I know I can do proc contents beforehand, but that wont get me the length of anything created during the data step which I would need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way of accessing this information in the data step?&lt;/P&gt;</description>
    <pubDate>Sun, 29 Mar 2020 18:00:08 GMT</pubDate>
    <dc:creator>weg</dc:creator>
    <dc:date>2020-03-29T18:00:08Z</dc:date>
    <item>
      <title>Access variable lengths in a data step?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-variable-lengths-in-a-data-step/m-p/635676#M188775</link>
      <description>&lt;P&gt;I need to automate using put to display information including data values and to align them using&amp;nbsp;@. There are too many to do manually so it seems I need to be able to get the length of the variable so I can align each column when printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I know I can do proc contents beforehand, but that wont get me the length of anything created during the data step which I would need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way of accessing this information in the data step?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 18:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-variable-lengths-in-a-data-step/m-p/635676#M188775</guid>
      <dc:creator>weg</dc:creator>
      <dc:date>2020-03-29T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access variable lengths in a data step?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-variable-lengths-in-a-data-step/m-p/635684#M188778</link>
      <description>You can get the defined length of a variable using the VLENGTH() function.  You can get the actual length of a value using the LENGTH() function.</description>
      <pubDate>Sun, 29 Mar 2020 19:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-variable-lengths-in-a-data-step/m-p/635684#M188778</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-29T19:20:35Z</dc:date>
    </item>
  </channel>
</rss>

