<?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: Macrovariables- Using Macro function %verify in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Macrovariables-Using-Macro-function-verify/m-p/540538#M7161</link>
    <description>&lt;P&gt;Thank you. I understand now!&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 18:42:10 GMT</pubDate>
    <dc:creator>talzy7</dc:creator>
    <dc:date>2019-03-05T18:42:10Z</dc:date>
    <item>
      <title>Macrovariables- Using Macro function %verify</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Macrovariables-Using-Macro-function-verify/m-p/540529#M7159</link>
      <description>&lt;PRE&gt;libname  orion "/courses/d0f434e5ba27fe300/mac1" access=readonly;
%let DSN = work.test;
%let FIRST = %substr(&amp;amp;DSN., 6,1);
%put The value of ckbegin = %verify(&amp;amp;DSN., &amp;amp;FIRST.);&lt;/PRE&gt;&lt;P&gt;In my homework, I am supposed to create a macro variable named DSN which equals work.test, extract the first letter of the data set name work.test and call it FIRST, and use an autocall macro to verify the value of first against a list of valid values. The output to the log should say ckbegin = 0 but my output says ckbegin = 1. I have attached my code and log.&lt;/P&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 70         
 71         libname  orion "/courses/d0f434e5ba27fe300/mac1" access=readonly;
 NOTE: Libref ORION was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /courses/d0f434e5ba27fe300/mac1
 72         %let DSN = work.test;
 73         %let FIRST = %substr(&amp;amp;DSN., 6,1);
 74         %put The value of ckbegin = %verify(&amp;amp;DSN., &amp;amp;FIRST.);
 The value of ckbegin = 1
 75         
 76         
 77         
 78         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 90   &lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Macrovariables-Using-Macro-function-verify/m-p/540529#M7159</guid>
      <dc:creator>talzy7</dc:creator>
      <dc:date>2019-03-05T18:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macrovariables- Using Macro function %verify</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Macrovariables-Using-Macro-function-verify/m-p/540536#M7160</link>
      <description>&lt;P&gt;Where is the list of valid values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You asked it to find the first character in work.test that is not in t and it is returning 1 since the first character, w, is not in the one character string t.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What kind of sick teacher assigned you homework using the very obscure macro implementation of the obscure VERIFY() function?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-size: 18px;"&gt;Syntax&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="xis-syntax"&gt;
&lt;DIV class="xis-syntaxSimple"&gt;
&lt;DIV class="xis-syntaxLevel"&gt;&lt;SPAN class="xis-keyword"&gt;VERIFY&lt;/SPAN&gt;(&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;&lt;A class="ng-scope" tabindex="0" title="Description of syntax: source" href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0aesccozrvg19n1bg83z1jb9nid.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p04r2i4hkhgg2fn1pd16gsldk3g6" data-docset-id="lefunctionsref" data-docset-version="9.4" data-original-href="p0aesccozrvg19n1bg83z1jb9nid.htm#p04r2i4hkhgg2fn1pd16gsldk3g6"&gt;source&lt;/A&gt;&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;&lt;A class="ng-scope" tabindex="0" title="Description of syntax: excerpt" href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0aesccozrvg19n1bg83z1jb9nid.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p16i4gmyjhxghhn1bshxbi8vx5so" data-docset-id="lefunctionsref" data-docset-version="9.4" data-original-href="p0aesccozrvg19n1bg83z1jb9nid.htm#p16i4gmyjhxghhn1bshxbi8vx5so"&gt;excerpt-1&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-argOptional"&gt;&amp;lt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-symbolHEllipsis"&gt;...&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;&lt;A class="ng-scope" tabindex="0" title="Description of syntax: excerpt" href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0aesccozrvg19n1bg83z1jb9nid.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p16i4gmyjhxghhn1bshxbi8vx5so" data-docset-id="lefunctionsref" data-docset-version="9.4" data-original-href="p0aesccozrvg19n1bg83z1jb9nid.htm#p16i4gmyjhxghhn1bshxbi8vx5so"&gt;excerpt-n&lt;/A&gt;&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="xis-syntaxDescription"&gt;
&lt;DIV class="xis-requiredArgGroup"&gt;
&lt;H3 id="n0554b1ccxpnoqn1vlsl45wu0030" class="xis-title"&gt;Required Arguments&lt;/H3&gt;
&lt;DIV id="p04r2i4hkhgg2fn1pd16gsldk3g6" class="xis-argDescriptionPair"&gt;
&lt;H4 class="xis-argument"&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;source&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;specifies a character constant, variable, or expression.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p16i4gmyjhxghhn1bshxbi8vx5so" class="xis-argDescriptionPair"&gt;
&lt;H4 class="xis-argument"&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;excerpt&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;specifies a character constant, variable, or expression. If you specify more than one excerpt, separate the excerpts with a comma.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="xis-details"&gt;
&lt;H2 id="n19q887dhjiq1tn13zz4ygy5gwre" class="xis-title"&gt;Details&lt;/H2&gt;
&lt;DIV id="p0526j3jrx0dydn1cp7hm3dbb8g3" class="xis-topicContent"&gt;
&lt;DIV id="p1i0fmfzndd9gtn0zrb0kixy0qe5" class="xis-paragraph"&gt;The VERIFY function returns the position of the first character in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;source&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that is not present in any&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;excerpt&lt;/SPAN&gt;. If VERIFY finds every character in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;source&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in at least one&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;excerpt&lt;/SPAN&gt;, VERIFY returns a 0.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p1jbw4zudle6b8n1kslqqwisgif2" class="xis-exampleBlock"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Macrovariables-Using-Macro-function-verify/m-p/540536#M7160</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-05T18:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macrovariables- Using Macro function %verify</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Macrovariables-Using-Macro-function-verify/m-p/540538#M7161</link>
      <description>&lt;P&gt;Thank you. I understand now!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Macrovariables-Using-Macro-function-verify/m-p/540538#M7161</guid>
      <dc:creator>talzy7</dc:creator>
      <dc:date>2019-03-05T18:42:10Z</dc:date>
    </item>
  </channel>
</rss>

