<?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: How to use &amp;quot;Varlist Statement&amp;quot; in Proc DS2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/523815#M142367</link>
    <description>Here is SAS Technical Support feedback:&lt;BR /&gt;“On the issue, our developer fedback&lt;BR /&gt; &lt;BR /&gt;The DS2 variable list was developed to fulfill a need of DS2 C packages, and it has very limited functionality supporting native DS2 packages and methods.  Currently, functionality is NOT provided to extract values from the variables in a variable list in DS2 code.”</description>
    <pubDate>Sat, 29 Dec 2018 06:04:48 GMT</pubDate>
    <dc:creator>NewmanChow</dc:creator>
    <dc:date>2018-12-29T06:04:48Z</dc:date>
    <item>
      <title>How to use "Varlist Statement" in Proc DS2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/449559#M113144</link>
      <description>&lt;P&gt;Hello Everyone :&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;The "Variable Lists" page&amp;nbsp;&lt;SPAN&gt;describes you can "Passing Variable List Arguments", &amp;nbsp;I want&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to test Varlist statement usage, like this : &amp;nbsp;(SAS 9.4M5 &amp;nbsp;Win x64)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data class;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc ds2;&lt;BR /&gt;data x(overwrite=yes);&lt;BR /&gt;/*dcl double age height weight;*/&lt;BR /&gt;dcl double y;&lt;BR /&gt;varlist vars [age height weight];&lt;BR /&gt;&lt;BR /&gt;method varmean(varlist vars) returns double;&lt;BR /&gt; declare double rst;&lt;BR /&gt; rst = mean(of vars);&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;method run();&lt;BR /&gt; set class;&lt;BR /&gt; y = varmean([age height weight]);&lt;BR /&gt;end;&lt;BR /&gt;enddata;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/PRE&gt;
&lt;P&gt;then&amp;nbsp;I got a&amp;nbsp;"ERROR: Invalid variable list. vars is not a global scalar variable."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you know how to use it&amp;nbsp;,or some paper i&lt;/SPAN&gt;&lt;A class="clickable js-inline-clickable" target="_blank"&gt;ntroduce it ?&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here you can find the page :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=ds2pg&amp;amp;docsetTarget=p1ko0gchlvwonyn173udvwbvspks.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=zh-CN#n0bk99gpptmbfxn1leucrebh80ft" target="_blank"&gt;http://documentation.sas.com/?docsetId=ds2pg&amp;amp;docsetTarget=p1ko0gchlvwonyn173udvwbvspks.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=zh-CN#n0bk99gpptmbfxn1leucrebh80ft&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 01:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/449559#M113144</guid>
      <dc:creator>NewmanChow</dc:creator>
      <dc:date>2018-03-30T01:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "Varlist Statement" in Proc DS2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/449640#M113182</link>
      <description>&lt;P&gt;I must admit I've not used earliest before and I can't get it to work either. There are a couple of errors in your code though which won't help:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The variable height is misspelt in your varlist declaration; and&lt;/P&gt;
&lt;P&gt;2. DS2 can't access the SASHELP library so you'll have to copy CLASS to another library before running the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be worth raising a track with SAS for this as I can't see why it won't&amp;nbsp;work as described in the documentation&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 13:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/449640#M113182</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-03-29T13:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "Varlist Statement" in Proc DS2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/449823#M113260</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &amp;nbsp;ChrisBrooks ,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Thank you for your feedback .&amp;nbsp;I have fixed&amp;nbsp;the Question and raising a track .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 01:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/449823#M113260</guid>
      <dc:creator>NewmanChow</dc:creator>
      <dc:date>2018-03-30T01:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "Varlist Statement" in Proc DS2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/523815#M142367</link>
      <description>Here is SAS Technical Support feedback:&lt;BR /&gt;“On the issue, our developer fedback&lt;BR /&gt; &lt;BR /&gt;The DS2 variable list was developed to fulfill a need of DS2 C packages, and it has very limited functionality supporting native DS2 packages and methods.  Currently, functionality is NOT provided to extract values from the variables in a variable list in DS2 code.”</description>
      <pubDate>Sat, 29 Dec 2018 06:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-quot-Varlist-Statement-quot-in-Proc-DS2/m-p/523815#M142367</guid>
      <dc:creator>NewmanChow</dc:creator>
      <dc:date>2018-12-29T06:04:48Z</dc:date>
    </item>
  </channel>
</rss>

