<?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: dataset integration in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/363989#M2637</link>
    <description>&lt;P&gt;Hi Ballard,&lt;/P&gt;&lt;P&gt;Thanks for your reply, I am attaching sample XLS sheet for your reference of the datasets. Appologies for not creating dataset they way you asked, I am new to SAS so need study a little bit more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sheet 1 contains main data in which I need to integrate sheet 2 and sheet 3. Its like 1 to many relationship. As sheet2 and 3 contain multiple rows of the same files present in sheet1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sheet 2 and 3 contains fields highlighted as red, about them I am not sure how to integrate. One way I thought was to integrate like a count of unique addresses per file for example for file 1 , in sd_off the count will be 2 , sd_virtad count=3 etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sheet2, sd_type becomes the feature and represented as a yes/no value in integrated sheet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sheet3, td_sname and td_stype are two important columns and have unique combinations of values as for every td_sname there is a td_stype, so, every unique combination becomes a column and represented as a yes/no value for each file name its present as 1 and 0 for rest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and red fields are the counters and flags should be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it clarifies more about my problem. Main thing is sheet 2 and 3 should be integrated in such a way that every file has one row representation only. Dont bother how many fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2017 07:28:12 GMT</pubDate>
    <dc:creator>geniusgenie</dc:creator>
    <dc:date>2017-06-03T07:28:12Z</dc:date>
    <item>
      <title>dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/363950#M2634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was wondering if someone can please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three datasets, all of them have one common column called file name.&lt;/P&gt;&lt;P&gt;First dataset contains 2000 rows all unique rows (One row per filename).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second one has multiple rows per file name, some filenames have 7 rows and some more than 7.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar for third dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to integrate second and third datasets in a way that both of these datasets have same one row per filename.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest how should I proceed for that?&lt;/P&gt;&lt;P&gt;So, that I can merge both of these datasets into First dataset as features.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Filename&lt;/TD&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;Col1&lt;/TD&gt;&lt;TD&gt;Col2&lt;/TD&gt;&lt;TD&gt;Col3&lt;/TD&gt;&lt;TD&gt;Col4&lt;/TD&gt;&lt;TD&gt;Co5&lt;/TD&gt;&lt;TD&gt;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TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 22:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/363950#M2634</guid>
      <dc:creator>geniusgenie</dc:creator>
      <dc:date>2017-06-02T22:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/363954#M2635</link>
      <description>&lt;P&gt;You should provide some data, enough&amp;nbsp; to demonstrate what you need,&amp;nbsp;for each of the tables and what the final result for the example data should look like. From your description possibly 2 rows for the first table mentioned and cases for the other data sets such that one of the filenames from the first data is only used once&amp;nbsp; and the other 3 times. You don't need to provide ALL of the variables but enough to demonstrate what you want done with other common variables if they exist. For instance if the variable XYZ exists in sets 2 and 3 which version do you want in the final result when they differ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It really helps to provide data in the form of a datastep. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It also helps to show code or describe what you have attempted so far.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 22:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/363954#M2635</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-02T22:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/363989#M2637</link>
      <description>&lt;P&gt;Hi Ballard,&lt;/P&gt;&lt;P&gt;Thanks for your reply, I am attaching sample XLS sheet for your reference of the datasets. Appologies for not creating dataset they way you asked, I am new to SAS so need study a little bit more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sheet 1 contains main data in which I need to integrate sheet 2 and sheet 3. Its like 1 to many relationship. As sheet2 and 3 contain multiple rows of the same files present in sheet1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sheet 2 and 3 contains fields highlighted as red, about them I am not sure how to integrate. One way I thought was to integrate like a count of unique addresses per file for example for file 1 , in sd_off the count will be 2 , sd_virtad count=3 etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sheet2, sd_type becomes the feature and represented as a yes/no value in integrated sheet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sheet3, td_sname and td_stype are two important columns and have unique combinations of values as for every td_sname there is a td_stype, so, every unique combination becomes a column and represented as a yes/no value for each file name its present as 1 and 0 for rest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and red fields are the counters and flags should be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it clarifies more about my problem. Main thing is sheet 2 and 3 should be integrated in such a way that every file has one row representation only. Dont bother how many fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 07:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/363989#M2637</guid>
      <dc:creator>geniusgenie</dc:creator>
      <dc:date>2017-06-03T07:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364041#M2644</link>
      <description>&lt;P&gt;If you want to reduce multiple rows to one there three basic methods.&lt;/P&gt;
&lt;P&gt;1) You could perform summary functions over the values. &amp;nbsp;So a numeric column could be reduced to the sum of the values in the column. &amp;nbsp;Or perhaps you want to take the min or max value, that could work for both numeric and character variables.&lt;/P&gt;
&lt;P&gt;2) You could TRANSPOSE the rows into columns. So if there are three observations be group your could convert that into three columns for one observation.&lt;/P&gt;
&lt;P&gt;3) You could pick the best observation and only use the data from that observation. So perhaps the first one or the last one or the one with largest value for some column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which of these methods do you want to do to transform your second and third datasets?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 21:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364041#M2644</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-03T21:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364043#M2645</link>
      <description>Hi Tom,&lt;BR /&gt;I am looking to transpose rows into column but the columns containing hex values may be treated as sum of unqiue values per filename. And columns like td_sname or type can be treated as a flag in which 1 represents particular value present . So transpose will let mutiple columns to be present which is my case.&lt;BR /&gt;&lt;BR /&gt;Each file in ds2 and 3 contains atleast 3 or more rows so multiple features in a single row after transpose. Sample is in sheet 4.</description>
      <pubDate>Sat, 03 Jun 2017 21:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364043#M2645</guid>
      <dc:creator>geniusgenie</dc:creator>
      <dc:date>2017-06-03T21:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364044#M2646</link>
      <description>Hi Tom,&lt;BR /&gt;I am looking to transpose rows into column but the columns containing hex values may be treated as sum of unqiue values per filename. And columns like td_sname or type can be treated as a flag in which 1 represents particular value present . So transpose will let mutiple columns to be present which is my case.&lt;BR /&gt;&lt;BR /&gt;Each file in ds2 and 3 contains atleast 3 or more rows so multiple features in a single row after transpose. Sample is in sheet4. Only thing i dont want is to skip any row unless same value gets repeated.</description>
      <pubDate>Sat, 03 Jun 2017 21:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364044#M2646</guid>
      <dc:creator>geniusgenie</dc:creator>
      <dc:date>2017-06-03T21:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364080#M2648</link>
      <description>&lt;P&gt;You will need to explain the data and the collapsing logic more clearly. Please include concrete (simplified) examples. &amp;nbsp;You could for show an example of 3 rows of data for the input and what you expect the single row of data in the output to look like. Include the example in the text of your message and NOT as an attachment. And if you must use an attachment then attach a text file and not a proprietory format like XLSX or DOCX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea what you mean by hex values. It sounds like you want to make a list of distinct values? &amp;nbsp;Do you want those values concatenated into a single longer character variable? &amp;nbsp;Does the order of the original observations matter, or could you sort the data to eliminate duplicate values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If by flags you mean boolean 0/1 values then usually you will want to either take the MAX() over the observations which is effectively an OR across the observations or SUM() which is effectively a count of the number of true cases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 03:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364080#M2648</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-04T03:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364089#M2649</link>
      <description>Hi Tom,&lt;BR /&gt;Reason why I uploaded XLS file because in my orginal post I copied few rows of data which was not clear for Ballard. If you notice in sheet number two and three some columns contain long numeric values , these values are actually hexa decimal values. for these values I am looking to get a sum of unique values per file number. For columns like sd_type, td_sname, td_stype , I am looking to transpose them into columns. These columns will contain either 0 or 1 to represent whether this column was present in this file. I called it a flag (I may be wrong on this). I do not want concatenation. As I explained earlier, my main dataset contains only one row per file and these second and third datasets contain more than one rows. I need to merge them into main datasets in such a way that I just copy columns on the right hand side of the last column of main dataset. Because they contain unique file numbers.</description>
      <pubDate>Sun, 04 Jun 2017 05:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364089#M2649</guid>
      <dc:creator>geniusgenie</dc:creator>
      <dc:date>2017-06-04T05:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: dataset integration</title>
      <link>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364095#M2650</link>
      <description>&lt;P&gt;The way you can create a clear example of what you want is to copy and paste your data as TEXT ONLY. No tabs. No HTML table. Make sure to use the Insert code or Insert SAS code icons in the rich text editor on this site so that it will preserve the spaces and be displayed using non-proportional font. If you want to edit the text in the code boxes remember to put the cursor inside the box and click the icon again so that you can edit in the pop-up window. &amp;nbsp;If you try to edit without doing that it messes up the formatting of the line breaks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not try to post an example with more than one of two variables and one or two groups (filenames?). Once you know how to do the transformation for variable, say SD_TYPE, then you can do it for other variables that you want to process in the same way yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic structure of your program is going to be.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;transform SHEET2 into NEW_SHEET2 that is one row per filename.&lt;/LI&gt;
&lt;LI&gt;transform SHEET3 into NEW_SHEET3 that is one row per filename.&lt;/LI&gt;
&lt;LI&gt;Then you just need to merge the three datasaets.&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
   merge sheet1 new_sheet2 new_sheet3 ;
   by filename;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 06:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/dataset-integration/m-p/364095#M2650</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-04T06:06:35Z</dc:date>
    </item>
  </channel>
</rss>

