<?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: Advanced Programming SAS 9.4 Practice Exam: Questions 9 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Advanced-Programming-SAS-9-4-Practice-Exam-Questions-9/m-p/911699#M40808</link>
    <description>&lt;P&gt;Yes yes yes!&amp;nbsp; I knew that I was missing something, despite rereading the question a dozen times. This is the type of thing I need to watch out for during the exam.&amp;nbsp; Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;!!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2024 21:31:13 GMT</pubDate>
    <dc:creator>TheresaM</dc:creator>
    <dc:date>2024-01-16T21:31:13Z</dc:date>
    <item>
      <title>Advanced Programming SAS 9.4 Practice Exam: Questions 9</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advanced-Programming-SAS-9-4-Practice-Exam-Questions-9/m-p/911693#M40806</link>
      <description>&lt;P&gt;I feel like the practice exam must have been reviewed a thousand times for accuracy, so I feel silly asking this, but I really feel like the answer to Question 9 should be&amp;nbsp;Bobby Bonilla. The question asks for&amp;nbsp;&lt;SPAN&gt;the value of the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;NewName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;variable for observation 28 in the output data set:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheresaM_0-1705437270000.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92565iEB15CCAD6ADF50BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TheresaM_0-1705437270000.png" alt="TheresaM_0-1705437270000.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The entire question is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Write a SAS program that will:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Use PROC FCMP to create a user-defined function called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ReverseName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;to convert the variable name values from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;lastname&lt;/I&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;firstname&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;firstname&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;lastname&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;(Example: convert&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;Wei&lt;/I&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;Zhang&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;Zhang Wei&lt;/I&gt;) Store the function in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work.functions.dev&lt;/STRONG&gt;.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Use the following formula for the conversion:&lt;SPAN class=""&gt;catx(" ", scan(name,2,","),scan(name,1,","))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Create a new data set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work.ACT01&lt;/STRONG&gt;.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Create this data set from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cert.names01&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;data set.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ReverseName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;function to create a new variable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;newName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;variable.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;&lt;STRONG&gt;work.ACT01&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should contain both the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;newName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;variables.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;When finished, sort the new data set by the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;newName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;variable in ascending order.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The correct code is below and the names.01 dataset is attached here.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options cmplib=work.functions;
proc fcmp outlib=work.functions.dev;
	function ReverseName(name $) $40;
	return(catx(" ", scan(name,2,","),scan(name,1,",")));
	endsub;
quit;

data work.act01;
	set cert.names01;
	newName=ReverseName(name);
run;&lt;/PRE&gt;
&lt;P&gt;Can someone try this and let me know if I am missing something? The answer key states that the correct response is "Bo Diaz" but that is the value for observation 79.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 20:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advanced-Programming-SAS-9-4-Practice-Exam-Questions-9/m-p/911693#M40806</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2024-01-16T20:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Programming SAS 9.4 Practice Exam: Questions 9</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advanced-Programming-SAS-9-4-Practice-Exam-Questions-9/m-p/911694#M40807</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446221"&gt;@TheresaM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I feel like the practice exam must have been reviewed a thousand times for accuracy, so I feel silly asking this, but I really feel like the answer to Question 9 should be&amp;nbsp;Bobby Bonilla. The question asks for&amp;nbsp;&lt;SPAN&gt;the value of the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;NewName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;variable for observation 28 in the output data set:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheresaM_0-1705437270000.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92565iEB15CCAD6ADF50BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TheresaM_0-1705437270000.png" alt="TheresaM_0-1705437270000.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The entire question is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Write a SAS program that will:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Use PROC FCMP to create a user-defined function called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ReverseName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;to convert the variable name values from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;lastname&lt;/I&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;firstname&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;firstname&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;lastname&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;(Example: convert&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;Wei&lt;/I&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;Zhang&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;Zhang Wei&lt;/I&gt;) Store the function in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work.functions.dev&lt;/STRONG&gt;.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Use the following formula for the conversion:&lt;SPAN class=""&gt;catx(" ", scan(name,2,","),scan(name,1,","))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Create a new data set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work.ACT01&lt;/STRONG&gt;.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Create this data set from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cert.names01&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;data set.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;Use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ReverseName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;function to create a new variable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;newName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;variable.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;&lt;STRONG&gt;work.ACT01&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should contain both the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;newName&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;variables.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;
&lt;BLOCKQUOTE&gt;&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;When finished, sort the new data set by the&amp;nbsp;newName&amp;nbsp;variable in ascending order.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The correct code is below and the names.01 dataset is attached here.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options cmplib=work.functions;
proc fcmp outlib=work.functions.dev;
	function ReverseName(name $) $40;
	return(catx(" ", scan(name,2,","),scan(name,1,",")));
	endsub;
quit;

data work.act01;
	set cert.names01;
	newName=ReverseName(name);
run;&lt;/PRE&gt;
&lt;P&gt;Can someone try this and let me know if I am missing something? The answer key states that the correct response is "Bo Diaz" but that is the value for observation 79.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Check the OBSERVATION NUMBER &lt;STRONG&gt;AFTER&lt;/STRONG&gt; SORTING&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 20:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advanced-Programming-SAS-9-4-Practice-Exam-Questions-9/m-p/911694#M40807</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-01-16T20:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Programming SAS 9.4 Practice Exam: Questions 9</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Advanced-Programming-SAS-9-4-Practice-Exam-Questions-9/m-p/911699#M40808</link>
      <description>&lt;P&gt;Yes yes yes!&amp;nbsp; I knew that I was missing something, despite rereading the question a dozen times. This is the type of thing I need to watch out for during the exam.&amp;nbsp; Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;!!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 21:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Advanced-Programming-SAS-9-4-Practice-Exam-Questions-9/m-p/911699#M40808</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2024-01-16T21:31:13Z</dc:date>
    </item>
  </channel>
</rss>

