<?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: SAS Certification. Does ?&amp;amp; mean -&amp;amp; in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849946#M1480</link>
    <description>&lt;P&gt;I think you are asking two unrelated questions here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one looks like it is about how to number study days. Should the first day be day zero or day one.&amp;nbsp; The answer is that either method is fine as long as that is what your analysis plan says to do.&amp;nbsp; If you want to number from one the use visit date minus baseline date plus one.&amp;nbsp; If you want to number from zero do not add the plus one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second question appears to be does the RETAIN statement require a space before the start of the list of variables to be retained.&amp;nbsp; And the answer is yes.&amp;nbsp; Otherwise it is not a RETAIN statement.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 20:10:37 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-12-15T20:10:37Z</dc:date>
    <item>
      <title>SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849930#M1473</link>
      <description>&lt;P&gt;I am about to take the certification exam for clinical trials programming. There is one question which I will have to enter, instead of multiple choice, that uses a question mark instead of an "-" for subtraction of macro variables. For example, inside of a user created macro, the difference between &amp;amp;visit and &amp;amp;rand is listed as &amp;amp;visit ?&amp;amp;rand +1;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like the answer should be &amp;amp;visit - &amp;amp;rand+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps, this is within the user defined macro studyday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro studyday(rand,visit);&lt;/P&gt;&lt;P&gt;&amp;amp;visit ?&amp;amp;rand;&lt;/P&gt;&lt;P&gt;%mend studyday;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the same test, the answers for the practice examps do not have a " " between words. For example, one answer is RETAINSUBJECTID. I'm not so concerned about these. But if anyone wants to recommend whether I should say "retainsujectid" or "retain subjectid", that would be welcome.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 18:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849930#M1473</guid>
      <dc:creator>TimWright22</dc:creator>
      <dc:date>2022-12-15T18:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849933#M1474</link>
      <description>&lt;P&gt;You could simply write the code and see for yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test;
%let visit = 222;
%let rand= 17;
%let oink = &amp;amp;visit-&amp;amp;rand+1;
%let oink2 = &amp;amp;visit ? &amp;amp;rand +1;
%put &amp;amp;=oink;
%put &amp;amp;=oink2;
%mend;

%test&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The two different macro statements are not the same, neither of them really produces a difference in the macro processor, although if you use the macro variables in a DATA step you could wind up with a difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test2;
%let visit = 222;
%let rand= 17;
%let oink = &amp;amp;visit-&amp;amp;rand+1;
%let oink2 = &amp;amp;visit ? &amp;amp;rand +1;
%put &amp;amp;=oink;
%put &amp;amp;=oink2;
data abc;
    difference=&amp;amp;oink;
run;
data abc2;
    difference=&amp;amp;oink2;
run;
%mend;

options mprint;
%test2&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another possiblity where ? is correct and – is not correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test3;
%let visit = name;
%let rand= 'Jane';
%let oink = &amp;amp;visit-&amp;amp;rand+1;
%let oink2 = &amp;amp;visit ? &amp;amp;rand;
%put &amp;amp;=oink;
%put &amp;amp;=oink2;

proc sql;
    select name,(&amp;amp;oink2) from sashelp.class;
quit;
%mend;

options mprint;
%test3&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the answer depends on how and where the macro and these macro variables will be used. You didn't really give that information.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849933#M1474</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-15T19:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849934#M1475</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/384102"&gt;@TimWright22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am about to take the certification exam for clinical trials programming. There is one question which I will have to enter, instead of multiple choice, that uses a question mark instead of an "-" for subtraction of mocro variables. For example, inside of a user created macro, the difference between &amp;amp;visit and &amp;amp;rand is listed as &amp;amp;visit ?&amp;amp;rand +1;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems like the answer should be &amp;amp;visit - &amp;amp;rand+1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it helps, this is within the user defined macro studyday.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro studyday(rand,visit);&lt;/P&gt;
&lt;P&gt;&amp;amp;visit ?&amp;amp;rand;&lt;/P&gt;
&lt;P&gt;%mend studyday;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the same test, the answers for the practice examps do not have a " " between words. For example, one answer is RETAINSUBJECTID. I'm not so concerned about these. But if anyone wants to recommend whether I should say "retainsujectid" or "retain subjectid", that would be welcome.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not exactly clear what you are asking, but it sounds like someone somewhere converted the hyphen used in SAS to represent subtraction operator into some other character, like an endash or emdash, and the font being used to display the line did not support that character so it was replaced with a question mark.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 18:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849934#M1475</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-15T18:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849938#M1476</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not exactly clear what you are asking, but it sounds like someone somewhere converted the hyphen used in SAS to represent subtraction operator into some other character, like an endash or emdash, and the font being used to display the line did not support that character so it was replaced with a question mark.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Very good guess!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849938#M1476</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-15T19:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849942#M1477</link>
      <description>I did not mention that this is used for date variables. Since all of sources seem to agree, I suppose I should just give the answer as they recommend. It doesn't seem like they can grade it wrong when all of the practice exams have it this way. It just makes me uneasy to provide an answer to the test when I do not understand why that answer is correct. I can afford to miss 30% and pass. hopefully this will not make the difference.</description>
      <pubDate>Thu, 15 Dec 2022 19:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849942#M1477</guid>
      <dc:creator>TimWright22</dc:creator>
      <dc:date>2022-12-15T19:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849943#M1478</link>
      <description>&lt;P&gt;Okay, used for date variables. But where? In a DATA step or PROC IML or PROC SQL, the minus sign can work (if done properly). Most other places, such a thing doesn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849943#M1478</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-15T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849945#M1479</link>
      <description>&lt;P&gt;Hi Paige Miller. Thanks your your assistance. I see that I did not give you all of the context. This is used in a data step:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data vs_sd;&lt;/P&gt;&lt;P&gt;set VS;&lt;/P&gt;&lt;P&gt;label rdt = "rdt label";&lt;/P&gt;&lt;P&gt;label vdt= "vdt label";&lt;/P&gt;&lt;P&gt;VSDT = %studyday(rdt,vdt);&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849945#M1479</guid>
      <dc:creator>TimWright22</dc:creator>
      <dc:date>2022-12-15T19:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849946#M1480</link>
      <description>&lt;P&gt;I think you are asking two unrelated questions here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one looks like it is about how to number study days. Should the first day be day zero or day one.&amp;nbsp; The answer is that either method is fine as long as that is what your analysis plan says to do.&amp;nbsp; If you want to number from one the use visit date minus baseline date plus one.&amp;nbsp; If you want to number from zero do not add the plus one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second question appears to be does the RETAIN statement require a space before the start of the list of variables to be retained.&amp;nbsp; And the answer is yes.&amp;nbsp; Otherwise it is not a RETAIN statement.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 20:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849946#M1480</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-15T20:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Certification. Does ?&amp; mean -&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849990#M1481</link>
      <description>&lt;P&gt;I suppose that what it comes down to is whether we think it is safe to use "?&amp;amp;" instead of "-&amp;amp;" in response to this question if it appears on the certification exam. I have decided that there is no reason to give an answer that is different from the one provided in the study guides, regardless of whether I understand why "?&amp;amp;" is used instead of "- &amp;amp;". It is certainly not worth spending so much time on this question when I actually know the answer, and it may not even be asked. Thanks for your assistance.&lt;/P&gt;&lt;P&gt;And yes, the second question was completely unrelated. In that case, I will go with what makes sense. I am not about to answer a question without a space where there clearly ought to be one.&amp;nbsp; I am never going to type 'RETAINSUBJECTID' as a response to a test question, so that part was not really worth asking, I consider this issue closed. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 00:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Certification-Does-amp-mean-amp/m-p/849990#M1481</guid>
      <dc:creator>TimWright22</dc:creator>
      <dc:date>2022-12-16T00:32:40Z</dc:date>
    </item>
  </channel>
</rss>

