<?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: How to show same variables side by side in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860015#M339747</link>
    <description>&lt;P&gt;What is the logic you want when merging data sets here? I don't think we can generalize or infer what you want from the one mismatch in your two tables. Please provide more details.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 20:55:21 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-02-21T20:55:21Z</dc:date>
    <item>
      <title>How to show same variables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860009#M339745</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am merging the below datasets but I am not getting the output which I want. Can anyone help me with this?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data local;
	input subject $1-10 local_visit $11-20 local_date $21-30 local_time $31-40;
datalines;
101-007   WEEK 18   13JUL2022  12:49
101-007   WEEK 18   13JUL2022  12:50
101-007   WEEK 18   13JUL2022  12:51
101-007   WEEK 20   28SEP2022  14:38
101-007   WEEK 20   28SEP2022  14:39
101-007   WEEK 20   28SEP2022  14:40
101-007   WEEK 22   13APR2022  13:02
101-007   WEEK 22   13APR2022  13:03
101-007   WEEK 22   13APR2022  13:04
;
run;
proc sort; by subject; run;

data central;
	input subject $1-10 central_visit $11-20 central_date $21-30 central_time $31-40;
datalines;
101-007   WEEK 18   13JUL2022  12:30
101-007   WEEK 18   13JUL2022  12:31
101-007   WEEK 19   14JUL2022  12:32
101-007   WEEK 20   28SEP2022  14:01
101-007   WEEK 20   28SEP2022  14:02
101-007   WEEK 20   29SEP2022  14:03
101-007   WEEK 22   13APR2022  13:45
101-007   WEEK 22   13APR2022  13:46
101-007   WEEK 22   14APR2022  13:47
;
run;
proc sort; by subject; run;

data want;
	input subject $1-10 local_visit $11-20 central_visit $21-30 local_date $31-40 central_date $42-51 local_time $53-58 central_time $60-65;
datalines;
101-007   WEEK 18   WEEK 18   13JUL2022  13JUL2022  12:49  12:30
101-007   WEEK 18   WEEK 18   13JUL2022  13JUL2022  12:50  12:31
101-007   WEEK 18             13JUL2022             12:51      
101-007             WEEK 19              14JUL2022         12:51
101-007   WEEK 20   WEEK 20   28SEP2022  28SEP2022  14:38  14:01
101-007   WEEK 20   WEEK 20   28SEP2022  28SEP2022  14:39  14:02
101-007   WEEK 20   WEEK 20   28SEP2022  29SEP2022  14:40  14:03
101-007   WEEK 22   WEEK 22   13APR2022  28SEP2022  13:02  13:45
101-007   WEEK 22   WEEK 22   13APR2022  28SEP2022  13:03  13:46
101-007   WEEK 22   WEEK 22   13APR2022  24SEP2022  13:04  13:47
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am unable to merge because of mutiple records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Anyala&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 20:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860009#M339745</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2023-02-21T20:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to show same variables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860015#M339747</link>
      <description>&lt;P&gt;What is the logic you want when merging data sets here? I don't think we can generalize or infer what you want from the one mismatch in your two tables. Please provide more details.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 20:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860015#M339747</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-21T20:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to show same variables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860018#M339749</link>
      <description>I want to combine two datasets by visits and compare dates and time for each visit from two datasets.</description>
      <pubDate>Tue, 21 Feb 2023 20:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860018#M339749</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2023-02-21T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to show same variables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860021#M339752</link>
      <description>&lt;P&gt;PROC COMPARE&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 21:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860021#M339752</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2023-02-21T21:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to show same variables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860022#M339753</link>
      <description>No, I would like to create a dataset which is shown in example the&lt;BR /&gt;dataset name called want to show variables side by side from each dataset for manual comaparision.</description>
      <pubDate>Tue, 21 Feb 2023 21:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860022#M339753</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2023-02-21T21:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to show same variables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860028#M339754</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117414"&gt;@chinna0369&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I want to combine two datasets by visits and compare dates and time for each visit from two datasets.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I ask you to provide the logic, and you repeat the same information as in your original message. That's not what I want. I want a more complete explanation of how to merge these data sets and create the desired output. The example you give has only one mismatch and I do not think I can generalize from one mismatch what to do in that situation.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 21:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860028#M339754</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-21T21:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to show same variables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860029#M339755</link>
      <description>&lt;P&gt;Suggestion: Don't worry much about the order of variables in a data set. Any of the report procedures can write variables in any order that you prefer.&lt;/P&gt;
&lt;P&gt;Proc Print the data concerned and list the variables in the order you want them on a VAR statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And do you really have that many "date" variables that are character??? That is basically shooting yourself in the foot as pretty much the first thing involved for most analysis or manipulation is going to be create a date value instead of character.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 22:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-same-variables-side-by-side/m-p/860029#M339755</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-21T22:00:43Z</dc:date>
    </item>
  </channel>
</rss>

