<?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: varnum arguments debug in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238442#M308716</link>
    <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/53151"&gt;@zaki&lt;/a&gt; oops my bad sorry varnum i wrote by mistake, am trying to extract a attribute of a macro variable &amp;amp; displaying it in d log.</description>
    <pubDate>Wed, 09 Dec 2015 05:16:19 GMT</pubDate>
    <dc:creator>RTelang</dc:creator>
    <dc:date>2015-12-09T05:16:19Z</dc:date>
    <item>
      <title>varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238238#M308714</link>
      <description>&lt;DIV class="sasSource"&gt;56 options nosymbolgen nomprint;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;57 %macro dataatt(data = ,attribute =,type=,notfound = );&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;58 %local dsid;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;59 %if %length(&amp;amp;type) = 0 %then %let type = N;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;60 %else %let type = %upcase(%substr(&amp;amp;type,1,1));&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;61&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;62 %if &amp;amp;type = N %then %let notfound = .;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;63 %else %let notfound = ' ';&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;64&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;65 %let dsid = %sysfunc(open(&amp;amp;data));&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;66 %if &amp;amp;dsid ne 0 %then %sysfunc(attrn(&amp;amp;dsid,&amp;amp;attribute));&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;67 %else &amp;amp;notfound;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;68&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;69 %let dsid = close(&amp;amp;dsid);&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;71 %mend dataatt;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72 %dataatt(data =sashelp.class,attribute=age,type=n,notfound = );&lt;/DIV&gt;
&lt;DIV id="sasLogWarning1_1449572539076" class="sasWarning"&gt;WARNING: Argument 2 to function ATTRN referenced by the %SYSFUNC or %QSYSFUNC macro function is out of range.&lt;/DIV&gt;
&lt;DIV id="sasLogNote1_1449572539076" class="sasNote"&gt;NOTE: Mathematical operations could not be performed during %SYSFUNC function execution. The result of the operations have been set&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;to a missing value.&lt;/DIV&gt;
&lt;DIV id="sasLogNote2_1449572539076" class="sasNote"&gt;NOTE: Line generated by the macro function "SYSFUNC".&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72 .&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1449572539076" class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order. &amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;how to rectify d code?&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Dec 2015 11:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238238#M308714</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-08T11:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238243#M308715</link>
      <description>&lt;P&gt;&lt;SPAN&gt;66 %if &amp;amp;dsid ne 0 %then %sysfunc(attrn(&amp;amp;dsid,&amp;amp;attribute));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What you try to do in this line?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You are using attrn with wrong&amp;nbsp;&lt;SPAN class="strong"&gt;&lt;SPAN class="strongEmph"&gt;attr-name ? chk : &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212040.htm" target="_self"&gt;ATTRN Function&lt;/A&gt;&amp;nbsp;valid attr-name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Where is&amp;nbsp;varnum in your code?&lt;/P&gt;&lt;P&gt;In which variable you will keep the&amp;nbsp;&lt;SPAN&gt;%sysfunc(); values? I think you are missing a %let in this line.....&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 12:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238243#M308715</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-08T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238442#M308716</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/53151"&gt;@zaki&lt;/a&gt; oops my bad sorry varnum i wrote by mistake, am trying to extract a attribute of a macro variable &amp;amp; displaying it in d log.</description>
      <pubDate>Wed, 09 Dec 2015 05:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238442#M308716</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-09T05:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238443#M308717</link>
      <description>and having issue with &lt;BR /&gt;%if &amp;amp;dsid ne 0 %then %sysfunc(attrn(&amp;amp;dsid,&amp;amp;attribute)); &lt;BR /&gt;&amp;amp; having issue solving this errorthis attarn</description>
      <pubDate>Wed, 09 Dec 2015 05:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238443#M308717</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-09T05:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238516#M308718</link>
      <description>&lt;P&gt;If you are going to use &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212040.htm" target="_self"&gt;ATTRN Function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you need to use valid&amp;nbsp;&lt;SPAN&gt;attr-name with it in the second argument like &amp;nbsp;&lt;STRONG&gt;NOBS,&amp;nbsp;ANY ........ &lt;/STRONG&gt;other mentioned on the link above&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So for example your code may look like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%if &amp;amp;dsid ne 0 %then %put %sysfunc(attrn(&amp;amp;dsid,nobs));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 15:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238516#M308718</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-09T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238531#M308719</link>
      <description>&lt;P&gt;I also think once you fix the attribute parameter in the attrn() function, you will get a syntax error at line 67 with "%else &amp;amp;notfound;".&amp;nbsp; Are you trying to put the notfound macro variable into another variable, or are you trying to print the value of the notfound macro variable to the log?&amp;nbsp; If you leave it as is, the code will resolve to %else . or %else ' ', depending on the value of the type macro variable.&amp;nbsp; SAS will read this and give you a syntax error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are wanting to print the value of the notfound macro variable to the log, you will need to add a "%put" in front of the &amp;amp;notfound.&amp;nbsp; If you are wanting to put the value of the notfound macro variable into another variable or a data set, you will need to add another %let statement setting a variable equal to &amp;amp;notfound or have a data step with the variable notfound put into a field.&amp;nbsp; Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 16:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238531#M308719</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-09T16:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238665#M308720</link>
      <description>%macro datatt(data = ,attribute =,type =,notfound = );&lt;BR /&gt;%local dsid;&lt;BR /&gt;&lt;BR /&gt;%if %length(&amp;amp;type)= 0 %then %let type= N;&lt;BR /&gt;	%else %let type = %upcase(%substr(&amp;amp;type,1,1));&lt;BR /&gt;%if &amp;amp;type = N %then %let notfound = .;&lt;BR /&gt;	%else %let notfound = ' ';&lt;BR /&gt;	&lt;BR /&gt;%let dsid = %sysfunc(open(&amp;amp;data));&lt;BR /&gt;%if &amp;amp;dsid ne 0 %then &lt;BR /&gt;%put %sysfunc(attrn(&amp;amp;dsid,nobs));&lt;BR /&gt;	%else &lt;BR /&gt;%put &amp;amp;notfound;&lt;BR /&gt;%let dsid = close(&amp;amp;dsid);&lt;BR /&gt;&lt;BR /&gt;%mend datatt;&lt;BR /&gt;%datatt(data =work.test0,attribute =var3,type =N,notfound =.);    hello this is my code but it doesn't display variable attribute what changes do i do to display a attribute of a specified dataset variable.</description>
      <pubDate>Thu, 10 Dec 2015 11:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238665#M308720</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-10T11:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238691#M308721</link>
      <description>&lt;P&gt;When you say "variable attribute", do you mean the variable type (Character/Numeric), Length, Format, etc..?&amp;nbsp; You could always run a proc contents and output it to a data set and limit that data set by the NAME value for whatever variable you are looking for.&amp;nbsp; Then you could set some macro variables equal to some of the different values in the data set for that variable and print those to the log.&amp;nbsp; Is that something you are trying to accomplish?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 14:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238691#M308721</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-10T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238721#M308722</link>
      <description>nope i want to display att of data set variable &amp;amp; not the type of variable... using a generic macro &lt;BR /&gt;</description>
      <pubDate>Thu, 10 Dec 2015 16:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238721#M308722</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-10T16:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238853#M308723</link>
      <description>My requirement---&amp;gt;need a macro code to return an attribute of a specified data-set variable,&lt;BR /&gt;My code only giving the number of attribute in d log how can i modify it to display a specific attribute of a specified data-set variable....?&lt;BR /&gt;%macro datatt(data = ,&lt;BR /&gt;              attribute =,&lt;BR /&gt;              type=);&lt;BR /&gt;%local dsid;&lt;BR /&gt;&lt;BR /&gt;%if %length(&amp;amp;type)= 0 %then %let type= N;&lt;BR /&gt;	%else %let type = %upcase(%substr(&amp;amp;type,1,1));&lt;BR /&gt;%if &amp;amp;type = N %then %let notfound = .;&lt;BR /&gt;	%else %let notfound = ' ';&lt;BR /&gt;	&lt;BR /&gt;%let dsid = %sysfunc(open(&amp;amp;data));&lt;BR /&gt;%if &amp;amp;dsid ne 0 %then &lt;BR /&gt;%put %sysfunc(attrn(&amp;amp;dsid,nobs));&lt;BR /&gt;	%else &lt;BR /&gt;%put &amp;amp;notfound;&lt;BR /&gt;%let dsid = close(&amp;amp;dsid);&lt;BR /&gt;&lt;BR /&gt;%mend datatt;</description>
      <pubDate>Fri, 11 Dec 2015 07:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238853#M308723</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-11T07:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238900#M308724</link>
      <description>&lt;P&gt;So, using the attrn() function, there are many different "attr-names" you can use in the second argument of the function.&amp;nbsp; You currently have nobs hardcoded to return which specifies the number of physical observations.&amp;nbsp; You could add an additional parameter in your %macro statement to set whatever attr-name you want to use with the attrn() function.&amp;nbsp; The statement would change to "%macro datatt(data=, attribute=, type=, notfound=, attrname=);".&amp;nbsp; All the different types of attributes you can find at the following link:&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212040.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212040.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would modify the nobs in the second argument of the attrn() function and set it equal to "&amp;amp;attrname".&amp;nbsp; Then in your call of the datatt macro, if you wanted to display nobs, you just call it like "%datatt(data=sashelp.class, attribute=age, type=n, notfound=, attrname=nobs);".&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 14:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/238900#M308724</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-11T14:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239283#M308725</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40360"&gt;@dcruik&lt;/a&gt; applied ur logic but got a error&lt;BR /&gt;&lt;BR /&gt; 56         %macro datatt(data = ,&lt;BR /&gt; 57                       attribute =,&lt;BR /&gt; 58                       type=);&lt;BR /&gt; 59         %local dsid;&lt;BR /&gt; 60         &lt;BR /&gt; 61         %if %length(&amp;amp;type)= 0 %then %let type= N;&lt;BR /&gt; 62         %else %let type = %upcase(%substr(&amp;amp;type,1,1));&lt;BR /&gt; 63         %if &amp;amp;type = N %then %let notfound = .;&lt;BR /&gt; 64         %else %let notfound = ' ';&lt;BR /&gt; 65         &lt;BR /&gt; 66         %let dsid = %sysfunc(open(&amp;amp;data));&lt;BR /&gt; 67         %if &amp;amp;dsid ne 0 %then&lt;BR /&gt; 68         %put variable=%sysfunc(attrn(&amp;amp;dsid,&amp;amp;&amp;amp;attrname));&lt;BR /&gt; 69         %else&lt;BR /&gt; 70         %put &amp;amp;notfound;&lt;BR /&gt; 71         %let dsid = close(&amp;amp;dsid);&lt;BR /&gt; 72         &lt;BR /&gt; 73         %mend datatt;&lt;BR /&gt; 74         %datatt(data=sashelp.class, attribute=age, type=n, notfound=., attrname=nobs);&lt;BR /&gt; ERROR: The keyword parameter NOTFOUND was not defined with the macro.&lt;BR /&gt; ERROR: The keyword parameter ATTRNAME was not defined with the macro.</description>
      <pubDate>Tue, 15 Dec 2015 04:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239283#M308725</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-15T04:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239351#M308726</link>
      <description>&lt;P&gt;Change the "&amp;amp;&amp;amp;attrname" to "&amp;amp;attrname".&amp;nbsp; Also, you need to include the notfound and attrname parameters in the %macro statement.&amp;nbsp; Instead of "%macro datatt(data=,attribute=,type=);", try doing "%macro datatt(data=,attribute=,type=,notfound=,attrname=);".&amp;nbsp; That should fix those errors.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 14:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239351#M308726</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-15T14:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239488#M308727</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40360"&gt;@dcruik&lt;/a&gt; i think my code is wrong i do not want to display numeric attributes of a variable but i want to display the variable itself.&lt;BR /&gt;&lt;BR /&gt; 56         %macro datatt(data=,&lt;BR /&gt; 57                       attribute=,&lt;BR /&gt; 58           type=,&lt;BR /&gt; 59           notfound=,&lt;BR /&gt; 60           attrname=);&lt;BR /&gt; 61         %local dsid;&lt;BR /&gt; 62         &lt;BR /&gt; 63         %if %length(&amp;amp;type)= 0 %then %let type= N;&lt;BR /&gt; 64         %else %let type = %upcase(%substr(&amp;amp;type,1,1));&lt;BR /&gt; 65         %if &amp;amp;type = N %then %let notfound = .;&lt;BR /&gt; 66         %else %let notfound = ' ';&lt;BR /&gt; 67         &lt;BR /&gt; 68         %let dsid = %sysfunc(open(&amp;amp;data));&lt;BR /&gt; 69         %if &amp;amp;dsid ne 0 %then&lt;BR /&gt; 70         %put variable=%sysfunc(attrn(&amp;amp;dsid,&amp;amp;attrname));&lt;BR /&gt; 71         %else&lt;BR /&gt; 72         &lt;BR /&gt; 73         %put &amp;amp;notfound;&lt;BR /&gt; 74         %let dsid = close(&amp;amp;dsid);&lt;BR /&gt; 75         &lt;BR /&gt; 76         %mend datatt;&lt;BR /&gt; 77         %datatt(data=sashelp.class, attribute=, type=n, notfound=., attrname=nvars);&lt;BR /&gt; variable=5---&amp;gt; &lt;BR /&gt; a specific variable name should be displayed..</description>
      <pubDate>Wed, 16 Dec 2015 09:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239488#M308727</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-16T09:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239489#M308728</link>
      <description>can we edit  this code to display attribute of the dataset variable...</description>
      <pubDate>Wed, 16 Dec 2015 09:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239489#M308728</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2015-12-16T09:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: varnum arguments debug</title>
      <link>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239521#M308730</link>
      <description>&lt;P&gt;When you say "display the attribute of the variable", what exactly do you mean?&amp;nbsp; Can you give me an example of an attribute you want to display?&amp;nbsp; Are you talking about the format of the variable, or the length of the variable?&amp;nbsp; The attrn() function returns the value of a numeric attribute, so with the nobs atrribute name parameter it will give you the number of physical observations.&amp;nbsp; I think you may want to look into the contents procedure and limit the output to the variable you want and the different "attributes" of the variable you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=comp.answer noprint
out=answer_contents;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1192iAF3EE0CDE207900B/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Contents.jpg" title="Contents.jpg" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 14:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/varnum-arguments-debug/m-p/239521#M308730</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-16T14:57:03Z</dc:date>
    </item>
  </channel>
</rss>

