<?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: mixing up data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599500#M16515</link>
    <description>&lt;P&gt;Maybe this can help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/06/06/sample-random-order.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/06/06/sample-random-order.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Oct 2019 02:38:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-10-26T02:38:04Z</dc:date>
    <item>
      <title>mixing up data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599499#M16514</link>
      <description>&lt;P&gt;I have a deck of cards using the following data step.&lt;/P&gt;
&lt;P&gt;How can I mix-up the cards in the dataset so that I can play 21?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cards(keep=card suit c2);
do c1= 1 to 4;
	if c1=1 then suit='C';
	else if c1=2 then suit='D';
	else if c1=3 then suit='H';
	else if c1=4 then suit='S';
	do c2= 1 to 13;
		card=c2||suit;
		output;
	end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Oct 2019 02:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599499#M16514</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-10-26T02:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: mixing up data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599500#M16515</link>
      <description>&lt;P&gt;Maybe this can help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/06/06/sample-random-order.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/06/06/sample-random-order.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 02:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599500#M16515</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-26T02:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: mixing up data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599501#M16516</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 03:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599501#M16516</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-10-26T03:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: mixing up data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599502#M16517</link>
      <description>&lt;P&gt;Keep it simple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cards;
length card $3;
do suit = "C", "D", "H", "S";
	do c2= 1 to 13;
		card=cats(c2,suit);
		output;
		end;
	end;
run;

proc sql;
create table shuffled as select * from cards order by rand("uniform");
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Oct 2019 03:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mixing-up-data/m-p/599502#M16517</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-10-26T03:11:00Z</dc:date>
    </item>
  </channel>
</rss>

