<?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: ID statement not two variables as shown in prep guide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843342#M333419</link>
    <description>&lt;P&gt;Thanks Kurt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct, this solved the mystery. The data provided is not matching as I mentioned in the &lt;A href="https://communities.sas.com/t5/SAS-Certification/Errata-for-SAS-Certified-Specialist-Prep-Guide-2019/m-p/842646#M1365" target="_self"&gt;prep guide errata thread&lt;/A&gt; and it is causing all these confusion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Who is the editor/proof reader at SAS for these prep guides man? I swear I can do a better job.&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="Nietzsche_0-1667995846806.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77111i52689E9294B8D8D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_0-1667995846806.png" alt="Nietzsche_0-1667995846806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 12:14:09 GMT</pubDate>
    <dc:creator>Nietzsche</dc:creator>
    <dc:date>2022-11-09T12:14:09Z</dc:date>
    <item>
      <title>ID statement not two variables as shown in prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843078#M333344</link>
      <description>&lt;P&gt;Hi, on page 162 of the specialist prep guide, it states that ID statement will concatenate variables specified in that statement and indeed the print out shown in the book is concatenated.&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="Nietzsche_1-1667903783001.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77071i2D679BD84D2F5DA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_1-1667903783001.png" alt="Nietzsche_1-1667903783001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However I am unable to reproduced it with the same code, the variables are separated by a comma and space/line break. Why is there a difference in the output?&lt;/P&gt;
&lt;PRE&gt;proc transpose data=cert.cltrials out=transtrials2;
var cholesterol triglyc uric;
id name testdate;
run;
proc print data=transtrials2;
run;
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_2-1667904061303.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77072i344041E4C36C801F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_2-1667904061303.png" alt="Nietzsche_2-1667904061303.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 10:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843078#M333344</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-08T10:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: ID statement not two variables as shown in prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843324#M333412</link>
      <description>&lt;P&gt;Interesting. I don't have access to the data used, but when i run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=sashelp.class out=work.transposed;
   var Weight Height;
   id Name Age;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the result is as expected, not comma between the values.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 11:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843324#M333412</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-11-09T11:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: ID statement not two variables as shown in prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843333#M333415</link>
      <description>&lt;P&gt;The commas and additional letters are in your data in the name variable.&lt;/P&gt;
&lt;P&gt;See this for an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data trials;
input name $ date :date9. value;
format date date9.;
datalines;
John,A 01jan1960 1
Richard 02jan1960 2
;

options validvarname=any;

proc transpose data=trials out=trials1;
var value;
id name date;
run;

proc print data=trials1;
run;

options validvarname=v7;

proc transpose data=trials out=trials2;
var value;
id name date;
run;

proc print data=trials2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The second run with validvarname=v7 is just there to show the effect of the option.&lt;/P&gt;
&lt;P&gt;There may be a difference between the data used when the prep guide was set up and the data as it is now.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 11:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843333#M333415</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-09T11:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: ID statement not two variables as shown in prep guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843342#M333419</link>
      <description>&lt;P&gt;Thanks Kurt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct, this solved the mystery. The data provided is not matching as I mentioned in the &lt;A href="https://communities.sas.com/t5/SAS-Certification/Errata-for-SAS-Certified-Specialist-Prep-Guide-2019/m-p/842646#M1365" target="_self"&gt;prep guide errata thread&lt;/A&gt; and it is causing all these confusion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Who is the editor/proof reader at SAS for these prep guides man? I swear I can do a better job.&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="Nietzsche_0-1667995846806.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77111i52689E9294B8D8D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_0-1667995846806.png" alt="Nietzsche_0-1667995846806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 12:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ID-statement-not-two-variables-as-shown-in-prep-guide/m-p/843342#M333419</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-09T12:14:09Z</dc:date>
    </item>
  </channel>
</rss>

