<?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 Defining dataset1 contents as same proc contents as dataset2, how to do it? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Defining-dataset1-contents-as-same-proc-contents-as-dataset2-how/m-p/666605#M199477</link>
    <description>&lt;P&gt;Dear everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's assume I have 2 Datasets (Dataset1 and Dataset2), same size, variables, but with some values different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After doing these changes in some values, I have runned some other code that runs on these Datasets, and the result on the both datasets is different. One of the difference i found is that before (using some code) the value .was being transformed to 0, and now this doesnt happen.&lt;/P&gt;
&lt;P&gt;For that i have done a proc contents of the table and I have realized the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carles_0-1593700888700.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46852i69787AED4C75144F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carles_0-1593700888700.png" alt="carles_0-1593700888700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the variables charset and sorted are different among datasets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1) Can&amp;nbsp;charset and sorted affect later other code on the data??,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2) How can I define this to being equal in dataset1 and dataset2 being equal to the format of dataset2?, can i copy formats generally ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for you time in advanced,&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2020 14:48:03 GMT</pubDate>
    <dc:creator>carles</dc:creator>
    <dc:date>2020-07-02T14:48:03Z</dc:date>
    <item>
      <title>Defining dataset1 contents as same proc contents as dataset2, how to do it?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defining-dataset1-contents-as-same-proc-contents-as-dataset2-how/m-p/666605#M199477</link>
      <description>&lt;P&gt;Dear everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's assume I have 2 Datasets (Dataset1 and Dataset2), same size, variables, but with some values different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After doing these changes in some values, I have runned some other code that runs on these Datasets, and the result on the both datasets is different. One of the difference i found is that before (using some code) the value .was being transformed to 0, and now this doesnt happen.&lt;/P&gt;
&lt;P&gt;For that i have done a proc contents of the table and I have realized the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carles_0-1593700888700.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46852i69787AED4C75144F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carles_0-1593700888700.png" alt="carles_0-1593700888700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the variables charset and sorted are different among datasets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1) Can&amp;nbsp;charset and sorted affect later other code on the data??,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2) How can I define this to being equal in dataset1 and dataset2 being equal to the format of dataset2?, can i copy formats generally ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for you time in advanced,&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defining-dataset1-contents-as-same-proc-contents-as-dataset2-how/m-p/666605#M199477</guid>
      <dc:creator>carles</dc:creator>
      <dc:date>2020-07-02T14:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Defining dataset1 contents as same proc contents as dataset2, how to do it?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defining-dataset1-contents-as-same-proc-contents-as-dataset2-how/m-p/666720#M199537</link>
      <description>&lt;P&gt;Proc contents describes the structure of the data set. Changing any of the value is done by recreating the data set to have a different structure.&lt;/P&gt;
&lt;P&gt;If you want to set the SORTED flag, you can for example sort the data with PROC SORT.&lt;/P&gt;
&lt;P&gt;If you want to change the encoding,&amp;nbsp;you can for example use the ENCODING= data set option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that none of this modifies the data held by the data set. If the . is now a zero, something else (the data, not the data set structure) has changed. Maybe the value was overwritten, or option MISSING was altered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 00:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defining-dataset1-contents-as-same-proc-contents-as-dataset2-how/m-p/666720#M199537</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-03T00:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Defining dataset1 contents as same proc contents as dataset2, how to do it?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defining-dataset1-contents-as-same-proc-contents-as-dataset2-how/m-p/666747#M199553</link>
      <description>&lt;P&gt;How would you define the encoding to appear as blank ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im not finding it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 07:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defining-dataset1-contents-as-same-proc-contents-as-dataset2-how/m-p/666747#M199553</guid>
      <dc:creator>carles</dc:creator>
      <dc:date>2020-07-03T07:15:43Z</dc:date>
    </item>
  </channel>
</rss>

