<?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 I don't know what is the issue here in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549353#M152421</link>
    <description>&lt;P&gt;I am trying to compare 2 datasets: the compare result is as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE class="batch"&gt;                                                             The COMPARE Procedure                                                             
                                                 Comparison of WORK.PRODCM1 with WORK.ALLSET1                                                  
                                                                (Method=EXACT)                                                                 
                                                                                                                                               
                                                    Value Comparison Results for Variables                                                     
                                                                                                                                               
                                          __________________________________________________________                                           
                                                     ||  Other Reason, Specify                                                                 
                                                     ||  Base Value           Compare Value                                                    
                                                 Obs ||  CMDISCOT              cmdiscot                                                        
                                           ________  ||  ___________________+  ___________________+                                            
                                                     ||                                                                                        
                                                 32  ||  UNKNOWN               UNKNOWN
                                                       
                                                 42  ||  UNKNOWN               UNKNOWN
                                                       
                                                126  ||  UNKNOWN               UNKNOWN
                                                       
                                                926  ||  PTWASINREFRACTORYDIS  	PTWASINREFRACTORYDI                                            
                                                939  ||  PTWASINREFRACTORYDIS  	PTWASINREFRACTORYDI&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I had taken all care while writing my program to use, this code while getting data from raw dataset:&lt;/P&gt;&lt;P&gt;"if strip(upcase(mydcotsp)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmdiscot="U";&lt;BR /&gt;else cmdiscot=strip(upcase(MYDCOTSP));"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when i saw the compare issue I used this in both production and QC datasets before comparing: "cmdiscot=strip(compress(cmdiscot));"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that the raw data\ has the data as&amp;nbsp; "&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PT WAS IN REFRACTORY DISEASE STATE". that's correct when I click on the cell there is that space before the actual data in the cell starts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How Can I get an exact match for this, programmatically ? No hard coding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help / suggestion is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinny&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&lt;BR /&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;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 08 Apr 2019 17:45:40 GMT</pubDate>
    <dc:creator>VinnyR</dc:creator>
    <dc:date>2019-04-08T17:45:40Z</dc:date>
    <item>
      <title>I don't know what is the issue here</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549353#M152421</link>
      <description>&lt;P&gt;I am trying to compare 2 datasets: the compare result is as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE class="batch"&gt;                                                             The COMPARE Procedure                                                             
                                                 Comparison of WORK.PRODCM1 with WORK.ALLSET1                                                  
                                                                (Method=EXACT)                                                                 
                                                                                                                                               
                                                    Value Comparison Results for Variables                                                     
                                                                                                                                               
                                          __________________________________________________________                                           
                                                     ||  Other Reason, Specify                                                                 
                                                     ||  Base Value           Compare Value                                                    
                                                 Obs ||  CMDISCOT              cmdiscot                                                        
                                           ________  ||  ___________________+  ___________________+                                            
                                                     ||                                                                                        
                                                 32  ||  UNKNOWN               UNKNOWN
                                                       
                                                 42  ||  UNKNOWN               UNKNOWN
                                                       
                                                126  ||  UNKNOWN               UNKNOWN
                                                       
                                                926  ||  PTWASINREFRACTORYDIS  	PTWASINREFRACTORYDI                                            
                                                939  ||  PTWASINREFRACTORYDIS  	PTWASINREFRACTORYDI&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I had taken all care while writing my program to use, this code while getting data from raw dataset:&lt;/P&gt;&lt;P&gt;"if strip(upcase(mydcotsp)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmdiscot="U";&lt;BR /&gt;else cmdiscot=strip(upcase(MYDCOTSP));"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when i saw the compare issue I used this in both production and QC datasets before comparing: "cmdiscot=strip(compress(cmdiscot));"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that the raw data\ has the data as&amp;nbsp; "&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PT WAS IN REFRACTORY DISEASE STATE". that's correct when I click on the cell there is that space before the actual data in the cell starts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How Can I get an exact match for this, programmatically ? No hard coding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help / suggestion is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinny&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&lt;BR /&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;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Apr 2019 17:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549353#M152421</guid>
      <dc:creator>VinnyR</dc:creator>
      <dc:date>2019-04-08T17:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: I don't know what is the issue here</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549361#M152425</link>
      <description>&lt;P&gt;Please post your full code, both steps where you create CMDISCOT variable and your compare code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post also a sample data with lines 32, 42, 126 etc. to check what value was in origin.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549361#M152425</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-04-08T18:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: I don't know what is the issue here</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549387#M152433</link>
      <description>&lt;P&gt;Hi Shmuel, please find my response below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***Excerpts of the program(pulling data from raw datasets)****&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data amyth1;&lt;BR /&gt;length cmtrt cmdecod cmcat cmscat cmbest cmdisc cmdiscot cmconf cmconfot $200;&lt;BR /&gt;set amyth;&lt;BR /&gt;if mytrt^="" or mytrt_product^="";&lt;BR /&gt;cmdecod=strip(mytrt_product);&lt;BR /&gt;cmtrt=strip(upcase(mytrt));&lt;BR /&gt;cmcat="PRIOR ANTI-MYELOMA REGIMEN";&lt;BR /&gt;if strip(upcase(mytype))="OTHER" and mytypot^="" then cmscat="OTHER" || " - " ||strip(upcase(mytypot));&lt;BR /&gt;else cmscat= strip(upcase(mytype));&lt;BR /&gt;cmlnkid=myregnum_raw;&lt;BR /&gt;if strip(upcase(myresp)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmbest="U";&lt;BR /&gt;else cmbest=strip(upcase(myresp));&lt;BR /&gt;if strip(upcase(mydcreas)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmdisc="U";&lt;BR /&gt;else cmdisc=strip(upcase(mydcreas));&lt;BR /&gt;if strip(upcase(mydcotsp)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmdiscot="U";&lt;BR /&gt;else cmdiscot=strip(upcase(MYDCOTSP));&lt;BR /&gt;if strip(upcase(myconfirm)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmconf="U";&lt;BR /&gt;else cmCONF=strip(upcase(myconfirm));&lt;BR /&gt;if strip(upcase(myconfot)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmconfot="U";&lt;BR /&gt;else cmconfot=strip(upcase(myconfot));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data postammr1;&lt;BR /&gt;length cmtrt cmdecod cmcat cmscat cmbest cmdisc cmdiscot $200;&lt;BR /&gt;set postammr;&lt;BR /&gt;if mytrt_product^="" or mytrt^="";&lt;BR /&gt;cmdecod=strip(mytrt_product);&lt;BR /&gt;cmtrt=strip(upcase(mytrt));&lt;BR /&gt;cmcat="POST DISEASE PROGRESSION ANTI-MM REGIMENS";&lt;BR /&gt;if strip(upcase(mytype))="OTHER" and mytypot^="" then cmscat="OTHER" || " - " ||strip(upcase(mytypot));&lt;BR /&gt;else cmscat= strip(upcase(mytype));&lt;BR /&gt;if strip(upcase(myresp)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmbest="U";&lt;BR /&gt;else cmbest=strip(upcase(myresp));&lt;BR /&gt;if strip(upcase(mydcreas)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmdisc="U";&lt;BR /&gt;else cmdisc=strip(upcase(mydcreas));&lt;BR /&gt;if strip(upcase(mydcotsp)) in ("UNKNOWN" "UN" "UNKNOW" "UKNOWN") then cmdiscot="U";&lt;BR /&gt;else cmdiscot=strip(upcase(MYDCOTSP));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*****Setting all data from raw datasets*********;&lt;/P&gt;&lt;P&gt;data allset;&lt;BR /&gt;set amyth1(keep=subject cmstdtc cmendtc cmdecod cmtrt cmpgdtc cmcat cmscat cmlnkid cmbest cmdisc cmdiscot cmconf cmconfot)&lt;BR /&gt;postammr1(keep=subject cmstdtc cmendtc cmdecod cmtrt cmpgdtc cmcat cmscat cmbest cmdisc cmdiscot)&lt;BR /&gt;cmnd1(keep=subject cmstdtc cmendtc cmtrt cmcat) cm1(keep=subject cmstdtc cmendtc cmdecod cmtrt cmcat cmdose)&lt;BR /&gt;lymph1(keep=subject cmstdtc cmendtc&lt;BR /&gt;cmtrt cmcat cmpresp cmoccur cmdose) leuk1(keep=subject cmstdtc cmendtc cmtrt cmcat cmpresp cmoccur cmdose);&lt;BR /&gt;usubjid="CRB-402-" || strip(substr(subject,4,3)) || "-" || strip(substr(subject,7));&lt;BR /&gt;cmdiscot=strip(compress(cmdiscot));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data cmprod;&lt;BR /&gt;merge prodcm(in=x1) supptr(in=x2);&lt;BR /&gt;by usubjid cmseq;&lt;BR /&gt;cmdiscot=strip(compress(cmdiscot));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**********Preparing for COMPARE***********;&lt;/P&gt;&lt;P&gt;proc sort data=cmprod out=prodcm1(keep=usubjid cmdecod cmstdtc cmendtc cmbest cmdisc cmdiscot cmconf cmconfot cmlnkid );&lt;BR /&gt;by usubjid cmdecod cmstdtc cmendtc descending cmlnkid cmbest cmdisc cmdiscot cmconf cmconfot ;&lt;BR /&gt;where cmdecod^="";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=allset out=allset1/*(keep=usubjid cmdecod cmstdtc cmendtc cmbest cmdisc cmdiscot cmconf cmconfot cmlnkid )*/;&lt;BR /&gt;by usubjid cmdecod cmstdtc cmendtc descending cmlnkid cmbest cmdisc cmdiscot cmconf cmconfot ;&lt;BR /&gt;where cmdecod^="";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc compare base=prodcm1 compare=allset1;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 19:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549387#M152433</guid>
      <dc:creator>VinnyR</dc:creator>
      <dc:date>2019-04-08T19:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: I don't know what is the issue here</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549411#M152439</link>
      <description>&lt;P&gt;Does CMDISCOT variable already exist in row data creating ALLSET1 : amyth, postammr ?&lt;/P&gt;
&lt;P&gt;If posotive, can it be "UNKNOWN" ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 20:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-don-t-know-what-is-the-issue-here/m-p/549411#M152439</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-04-08T20:05:17Z</dc:date>
    </item>
  </channel>
</rss>

