<?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: Any adverse events by treatment group - concat multiple variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873629#M345192</link>
    <description>&lt;P&gt;Can you please show us a portion of the actual SAS data set as working SAS data step code? Please see &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt; for examples. Do NOT provide data in other forms.&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 13:21:18 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-05-03T13:21:18Z</dc:date>
    <item>
      <title>Any adverse events by treatment group - concat multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873614#M345185</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create a AE listing by treatment group. The data representation in listing looks like this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-----------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;SUBJID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PERIOD &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SOC &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;(Age/sex) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VISIT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AETERM&lt;/P&gt;
&lt;P&gt;-----------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TREATMENT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nervous system disorder&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (64/f) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cycle 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Hypoaesthesia&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Numbness to top things&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm thinking to concat these multiple variable but not sure how to split them in this desired format. any comments or suggestions will be highly appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;SASFREAK&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873614#M345185</guid>
      <dc:creator>SASFREAK</dc:creator>
      <dc:date>2023-05-03T12:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Any adverse events by treatment group - concat multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873629#M345192</link>
      <description>&lt;P&gt;Can you please show us a portion of the actual SAS data set as working SAS data step code? Please see &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt; for examples. Do NOT provide data in other forms.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 13:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873629#M345192</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-03T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Any adverse events by treatment group - concat multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873632#M345194</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*example code - I'm concating the variables but not sure how to represent them as indented in the .lst output*/

data sample;
input subjid $ demog$ phase $ avisit$ SOC $ PT$ AETERM$;
datalines;
001 (54/F) TREATMENT CYCLE1 Gastro CONSTIPATION constipation
001 (54/F) TREATMENT CYCLE1 Gastro DIAORRHOE  PAIN
001 (54/F) TREATMENT CYCLE2 Skin  Pruitus ITICHING
001 (54/F) FOLLOWUP CYCLE1. Skin Rash RASH
001 (54/F) FOLLOWUP CYCLE2  Psychtric Insomnia INSOMNIA
;
RUN;

data adae;
set SAMPLE;
/*combining variables -  subjid +demog info*/

col1 = cat(subjid , " + ", demog);
col2 = cat(phase, " + " , avisit);

run;




 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 May 2023 13:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873632#M345194</guid>
      <dc:creator>SASFREAK</dc:creator>
      <dc:date>2023-05-03T13:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Any adverse events by treatment group - concat multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873664#M345202</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45322"&gt;@SASFREAK&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*example code - I'm concating the variables but not sure how to represent them as indented in the .lst output*/

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you mean that expect to see indents&amp;nbsp;&lt;STRONG&gt;and&lt;/STRONG&gt; apparent line feeds in the actual values of the variable values in the data set viewer? A report? An exported data file? Somewhere else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this relates to LST, or other output, please show us the code that is supposed to generate the output and the desired ODS destinations. Some approaches that might work for Listing would not work for RTF, PDF or HTML output.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 15:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Any-adverse-events-by-treatment-group-concat-multiple-variables/m-p/873664#M345202</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-03T15:09:30Z</dc:date>
    </item>
  </channel>
</rss>

