<?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 generate test data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44184#M9049</link>
    <description>How could you generate test data with no input data?&lt;BR /&gt;
please explain it.</description>
    <pubDate>Thu, 21 Jan 2010 14:41:47 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-01-21T14:41:47Z</dc:date>
    <item>
      <title>generate test data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44184#M9049</link>
      <description>How could you generate test data with no input data?&lt;BR /&gt;
please explain it.</description>
      <pubDate>Thu, 21 Jan 2010 14:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44184#M9049</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-21T14:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: generate test data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44185#M9050</link>
      <description>Your SAS application (and its particular input requirements) must determine how you decide on "test data".  For basic testing, the use of DATALINES;  or for some CARDS;   works to exercise code-path logic.  For other, more comprehensive testing, you may need to acquire sample data streams from your input data-source owner(s), catalog these resources (possibly even down to some "versioning" level), and then create your test-scenarios based on these sources.&lt;BR /&gt;
&lt;BR /&gt;
Of course, with SAS, you have the sample files in the SASHELP data library to reference, for some types of testing.  And there are "public" data-source references you can find through Internet searches, while using good keywords and key-phrases.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 21 Jan 2010 15:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44185#M9050</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-21T15:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: generate test data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44186#M9051</link>
      <description>I like to start with PROC PLAN.  You can easily generate a data set that can looks demography from a clinical trial.  If you need to simulate more sophisticated variables like height and weight and have them seem reasonable requires some knowledge of the variable but it can be done with the aid of SAS random number functions.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc plan seed=152169984;&lt;BR /&gt;
   factors &lt;BR /&gt;
      usubjid = 100 ordered&lt;BR /&gt;
      trt=1 of 2;&lt;BR /&gt;
   treatments sex=1 of 2 race=1 of 4 age=1 of 50;&lt;BR /&gt;
   output out=testdata &lt;BR /&gt;
      usubjid  nvals=(2001010001 to 2001010050 2001020051 to 2001020100)&lt;BR /&gt;
      trt      cvals=('Placebo' 'Active')&lt;BR /&gt;
      sex      cvals=('F' 'M')&lt;BR /&gt;
      race     cvals=('White' 'Black' 'Asian' 'Other')&lt;BR /&gt;
      age      nvals=(18 to 67 by 1)&lt;BR /&gt;
      ;&lt;BR /&gt;
   run;&lt;BR /&gt;
   quit;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 21 Jan 2010 20:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44186#M9051</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-01-21T20:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: generate test data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44187#M9052</link>
      <description>imagine you have 4 columns c1-c4 for which you want test data with value in this list&lt;BR /&gt;
c1 zxcv, f567, h789, n098&lt;BR /&gt;
c2 12.34, 1234, 987, 1000000&lt;BR /&gt;
c3 "Leena sasuser", "Peter C", "another"&lt;BR /&gt;
c4  wq, er, ty&lt;BR /&gt;
This is syntax that uses these [pre]data test_data1 ;&lt;BR /&gt;
   do c1= 'zxcv', 'f567', 'h789', 'n098' ;&lt;BR /&gt;
   do c2= 12.34, 1234, 987, 1000000 ;&lt;BR /&gt;
   do c3= "Leena sasuser", "Peter C", "another" ;&lt;BR /&gt;
   do c4= "wq", "er", "ty";&lt;BR /&gt;
   output ;&lt;BR /&gt;
   end ; end ; end ; end ; &lt;BR /&gt;
run ; [/pre]It generates 4x4x4x3 rows of test data, every combination of those values.&lt;BR /&gt;
Is that the model solution you want?&lt;BR /&gt;
  &lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 22 Jan 2010 10:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generate-test-data/m-p/44187#M9052</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-01-22T10:11:23Z</dc:date>
    </item>
  </channel>
</rss>

