<?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 Reg:Character or Numeric variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26811#M6152</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
i have some variables i dont know the type they or charter or numeric.&lt;BR /&gt;
Now i want a new variable as Type_var it should print as charater or numeric for what type of variable it is weather character or numeric</description>
    <pubDate>Mon, 04 May 2009 12:35:46 GMT</pubDate>
    <dc:creator>R_Win</dc:creator>
    <dc:date>2009-05-04T12:35:46Z</dc:date>
    <item>
      <title>Reg:Character or Numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26811#M6152</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
i have some variables i dont know the type they or charter or numeric.&lt;BR /&gt;
Now i want a new variable as Type_var it should print as charater or numeric for what type of variable it is weather character or numeric</description>
      <pubDate>Mon, 04 May 2009 12:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26811#M6152</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2009-05-04T12:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Character or Numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26812#M6153</link>
      <description>If you want to know how a column is defined, that information can be reached in DICTIONARY.COLUMNS (via proc sql), SASHELP.VCOLUMN or data step functions. The can assign that value to a macro variable to be used in an assignment statement.&lt;BR /&gt;
&lt;BR /&gt;
if you want to know what type of values is stored in a character column, there's a bunch of functions that can helpful such as notdigit.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Mon, 04 May 2009 12:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26812#M6153</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-05-04T12:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Character or Numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26813#M6154</link>
      <description>Depending on the purpose/use of a given SAS variable, you can define whether it is CHARACTER or NUMERIC type (using either a LENGTH or ATTRIB statement) or with one of multiple "import" processes, and also you should define what SAS output FORMAT is to be used to display the data.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Step-by-Step Programming...Working with Numeric Variables&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304311.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304311.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
SAS Step-by-Step Programming...Working with Character Variables&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304318.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304318.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
SAS  9.2 Language Concepts...SAS Variables in Expressions&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000780416.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000780416.htm&lt;/A&gt;</description>
      <pubDate>Mon, 04 May 2009 12:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26813#M6154</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-04T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Character or Numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26814#M6155</link>
      <description>Hi &lt;B&gt;Main&lt;/B&gt;,&lt;BR /&gt;
&lt;BR /&gt;
With PROC CONTENTS, you can use the ODS table "Variables" to save the variables' types as a separate variable. Please look at this example:&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
input var1 $ var2 var3 $;&lt;BR /&gt;
datalines;&lt;BR /&gt;
wqw 83478 360376&lt;BR /&gt;
febifie 947604670 305035&lt;BR /&gt;
bdhb 045670 230948&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc contents data=test;&lt;BR /&gt;
ods output variables=var_type;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=var_type;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 04 May 2009 15:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Character-or-Numeric-variable/m-p/26814#M6155</guid>
      <dc:creator>statsplank</dc:creator>
      <dc:date>2009-05-04T15:39:24Z</dc:date>
    </item>
  </channel>
</rss>

