<?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 Wildcards in model statement? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27251#M6216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed : does not work here as a wildcard. Any workaround fixes that come to mind if its impossible to use wildcard here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 23:06:25 GMT</pubDate>
    <dc:creator>jmgorzo</dc:creator>
    <dc:date>2011-07-06T23:06:25Z</dc:date>
    <item>
      <title>Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27249#M6214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a macro that generates a separate variable for each level of a class variable (ex. ZLAND1 ZLAND2 ZLAND3 etc.). In my model statement, I want to use all of the variables with the same prefix, which seems best accomplished by a wildcard character (ex. ZLAND*). Is there a way to use wildcards in a model statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 21:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27249#M6214</guid>
      <dc:creator>jmgorzo</dc:creator>
      <dc:date>2011-07-06T21:25:12Z</dc:date>
    </item>
    <item>
      <title>Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27250#M6215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Depends on the procedure but the proper syntax is name: as in ZLAND:.&amp;nbsp; But it may not be acceptable to MODEL statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 22:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27250#M6215</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-07-06T22:06:35Z</dc:date>
    </item>
    <item>
      <title>Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27251#M6216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed : does not work here as a wildcard. Any workaround fixes that come to mind if its impossible to use wildcard here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 23:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27251#M6216</guid>
      <dc:creator>jmgorzo</dc:creator>
      <dc:date>2011-07-06T23:06:25Z</dc:date>
    </item>
    <item>
      <title>Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27252#M6217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An enumerated list might work ZLAND1-ZLAND3 or you can create a macro varible with the list of variables using PROC SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select name into :zland separated by&amp;nbsp; ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname eq 'WORK' and memname eq 'YOURDATASETNAME' and name eqT 'ZLAND';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What PROC are you using you need to show more or you work cause you may be "working too hard".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 23:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27252#M6217</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-07-06T23:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27253#M6218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached the SAS program in the original post, here is one of the datasets I am working with. You can change the file path and run it if you want to see more of what I'm doing; I'm using proc glmselect. In the model statement I have all of the "prefixes" of the variables that I want to use out of the entire set, which are appended with class when transposed by the macro. You can proc print classtrans if you want to see what the macro output looks like :smileylaugh:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 03:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27253#M6218</guid>
      <dc:creator>jmgorzo</dc:creator>
      <dc:date>2011-07-07T03:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27254#M6219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Hi jmgorzo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;The problem can be solved in two ways... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;1) Using Wildcard - When it comes to list of SAS variables, : (colon) can be used as a suffix wildcard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When a set of characters is followd by a colon in a variable list ( (ex. &lt;/SPAN&gt;﻿ZLAND: CACOV:) it implies that several variables are to be specified in the list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;2) Next is using Array&amp;nbsp; - Put all your wildcard variable list in an array and use array to list the variables in your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Hope this helps....! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Dhanasekaran R&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 05:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27254#M6219</guid>
      <dc:creator>dhana</dc:creator>
      <dc:date>2011-07-07T05:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27255#M6220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you sent all the required files but I'm not sure that would help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do wonder why you don't use the CLASS statement in GLMSELECT. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 15:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27255#M6220</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-07-07T15:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27256#M6221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies datanull, I forgot the response metric excel file, attached here. Class isn't a variable in the model, it is only used in the creation of those new variables. Dhana, thanks for the reply- as mentioned above, I am going to bold this so future readers do not miss it &lt;STRONG&gt;the colon does not work in the model statement &lt;/STRONG&gt;unless I am using it incorrectly :smileysilly: If you have it working in a model statement in proc glmselect, please let me know. Array might work, I will try this but I am afraid it is going to consider the whole array as one variable, and my whole point of using the macro was to break up the variables. Perhaps I am wrong in how SAS will interpret it though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 18:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27256#M6221</guid>
      <dc:creator>jmgorzo</dc:creator>
      <dc:date>2011-07-07T18:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27257#M6222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my workaround....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data interest;&lt;/P&gt;&lt;P&gt;keep ZLAND: CACOV: MCA: CASD: TCA: TCAI: CAD: AWMSI: MSI: MPFD: AWMPFD: CWED: TE: ED: MPS: NUMP: PSCOV: PSSD: TLA: CA:;&lt;/P&gt;&lt;P&gt;set classtrans;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data narrowed;&lt;/P&gt;&lt;P&gt;drop CACV: MCAI: MCA1_: MSIE: MSID: ;&lt;/P&gt;&lt;P&gt;set interest;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;PROC CONTENTS DATA = NARROWED&lt;/P&gt;&lt;P&gt;OUT=VARlist(KEEP = NAME) NOPRINT;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;select distinct name&lt;/P&gt;&lt;P&gt;into :orderedvars separated by ' '&lt;/P&gt;&lt;P&gt;from varlist;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates the macro variable &amp;amp;orderedvars. For some reason, though, I can't call that as an effect in proc glmselect model statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 01:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27257#M6222</guid>
      <dc:creator>jmgorzo</dc:creator>
      <dc:date>2011-07-08T01:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27258#M6223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first_var_name &lt;STRONG&gt;--&lt;/STRONG&gt; last_var_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 07:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27258#M6223</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-07-08T07:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27259#M6224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not...I will give that a go. Now I have a new question though, may have to start a new thread. Here is the latest version of my project, replace coursefine.xls with the 1kmfine.xls listed above to run. I have picked out the variables I want to select from and manually put them in the model statement&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; However, it says no suitable observations were found when I run. When I run with way less variables, it will work...any ideas? What is the limitation here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 20:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27259#M6224</guid>
      <dc:creator>jmgorzo</dc:creator>
      <dc:date>2011-07-08T20:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27260#M6225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Missing observations....fixed by running a bugged macro (I reported the error to SAS) to balance the observations. If you do this before they fix it, change that # to &amp;amp;num;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This macro removes variables that have any missing obs. All clear now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/613.html"&gt;http://support.sas.com/kb/24/613.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2011 18:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27260#M6225</guid>
      <dc:creator>jmgorzo</dc:creator>
      <dc:date>2011-07-09T18:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in model statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27261#M6226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my "variables fit to be considered" program. First reads my input excel file (use the one above to try, change pathname) then transposes all the variables by all the classes, so that each level of class represents a separate variable. Then deletes all variables with missing values (balances analysis). Then makes macro &amp;amp;orderedvars with all the variable names left.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2011 18:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wildcards-in-model-statement/m-p/27261#M6226</guid>
      <dc:creator>jmgorzo</dc:creator>
      <dc:date>2011-07-09T18:55:13Z</dc:date>
    </item>
  </channel>
</rss>

