<?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: Lesion diameter summary check in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68906#M6871</link>
    <description>Look at using PROC SUMMARY to create a total by SUBJID and then use a DATA step MERGE with a BY to merge back onto your data file with your SUM total for analysis.  It's possible as well with PROC SQL and a JOIN.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search arguments, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
data step merge processing site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
data step merge processing column total site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
proc sql join calculate total site:sas.com</description>
    <pubDate>Tue, 16 Mar 2010 22:08:41 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-03-16T22:08:41Z</dc:date>
    <item>
      <title>Lesion diameter summary check</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68903#M6868</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
The following program produces output summarizing the changes in a sum of lesion diameters by comparing each sum to the smallest sum occurring previously. What I'd like to do is modify it so it compares each sum to the baseline value. Any suggestions on the most efficient way to do this?&lt;BR /&gt;
&lt;BR /&gt;
data SUMCHECK;&lt;BR /&gt;
set SASUSER.QUERY_FOR_LS_SAS7BDAT_0006;&lt;BR /&gt;
retain MINLDSUM;&lt;BR /&gt;
by SUBJID;&lt;BR /&gt;
if FIRST.SUBJID then do;&lt;BR /&gt;
MINLDSUM=.;&lt;BR /&gt;
LDSUMCHG=.;&lt;BR /&gt;
end;&lt;BR /&gt;
LDSUMCHG=(LDSUM-MINLDSUM)/MINLDSUM;&lt;BR /&gt;
MINLDSUM=min(MINLDSUM,LDSUM);&lt;BR /&gt;
format LDSUMCHG 8.3;&lt;BR /&gt;
run&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance,&lt;BR /&gt;
&lt;BR /&gt;
John</description>
      <pubDate>Tue, 16 Mar 2010 20:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68903#M6868</guid>
      <dc:creator>psusudzi92</dc:creator>
      <dc:date>2010-03-16T20:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lesion diameter summary check</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68904#M6869</link>
      <description>Where does your baseline information reside?&lt;BR /&gt;
&lt;BR /&gt;
Also, you have logic that will not work, because you are performing a subtraction with FIRST.SUBJID where MINLDSUM is assigned to a MISSING value.  Consider looking into using the SUM function and code a -MINLDSUM as one argument.&lt;BR /&gt;
&lt;BR /&gt;
Suggest you use the PUTLOG _ALL_; statement to debug your program at various points along the DATA step path progression.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 16 Mar 2010 21:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68904#M6869</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-16T21:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lesion diameter summary check</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68905#M6870</link>
      <description>The baseline sum exists in the LDSUM variable in the SASUSER.QUERY_FOR_LS_SAS7BDAT_0006 dataset. All of the sums exist in the LDSUM variable and would be distinguished from each other by the date variable.&lt;BR /&gt;
&lt;BR /&gt;
As for the current program I posted, it runs fine and produces valid output, as posted below. I get lots of 0's that are irrelevant but I can ignore them.&lt;BR /&gt;
&lt;BR /&gt;
SUBJID	LSVIS	LSVISCD	LSNUM	LSSITE	LSDESC	LSDTN	LSMTD	LSDIA	LSDIAU	LDSUM	MINLDSUM	LDSUMCHG&lt;BR /&gt;
001-001	PRE-STUDY	1	1	LUNG	LEFT UPPER LOBE	06Jul2008	SPIRAL CT	11	cm	23.2	23.2	&lt;BR /&gt;
001-001	PRE-STUDY	1	2	LYMPH NODE	LEFT AXILLA	06Jul2008	SPIRAL CT	2.3	cm	23.2	23.2	0.000&lt;BR /&gt;
001-001	PRE-STUDY	1	3	LYMPH NODE	PRE-VASCULAR	06Jul2008	SPIRAL CT	2.9	cm	23.2	23.2	0.000&lt;BR /&gt;
001-001	PRE-STUDY	1	4	LYMPH NODE	AORTICOPULMONARY	06Jul2008	SPIRAL CT	2.7	cm	23.2	23.2	0.000&lt;BR /&gt;
001-001	PRE-STUDY	1	5	LYMPH NODE	AORTICOPULMONARY #2	06Jul2008	SPIRAL CT	3.1	cm	23.2	23.2	0.000&lt;BR /&gt;
001-001	PRE-STUDY	1	6	LYMPH NODE	PRE-CARINAL	06Jul2008	SPIRAL CT	1.2	cm	23.2	23.2	0.000&lt;BR /&gt;
001-001	CYCLE 2	2	1	LUNG	LEFT UPPER LOBE	19Aug2008	SPIRAL CT	5.5	cm	13	13	-0.440&lt;BR /&gt;
001-001	CYCLE 2	2	2	LYMPH NODE	LEFT AXILLA	19Aug2008	SPIRAL CT	0.9	cm	13	13	0.000&lt;BR /&gt;
001-001	CYCLE 2	2	3	LYMPH NODE	PRE-VASCULAR	19Aug2008	SPIRAL CT	2.3	cm	13	13	0.000&lt;BR /&gt;
001-001	CYCLE 2	2	4	LYMPH NODE	ARTICOPULMONARY	19Aug2008	SPIRAL CT	1.9	cm	13	13	0.000&lt;BR /&gt;
001-001	CYCLE 2	2	5	LYMPH NODE	AORTICOPULMONARY #2	19Aug2008	SPIRAL CT	1.5	cm	13	13	0.000&lt;BR /&gt;
001-001	CYCLE 2	2	6	LYMPH NODE	PRE-CARNIAL	19Aug2008	SPIRAL CT	0.9	cm	13	13	0.000&lt;BR /&gt;
001-001	CYCLE 4	3	1	LUNG	LEFT UPPER LOBE	02Oct2008	SPIRAL CT	4.1	cm	8.6	8.6	-0.338&lt;BR /&gt;
001-001	CYCLE 4	3	2	LYMPH NODE	LEFT AXILLA	02Oct2008	SPIRAL CT	0	cm	8.6	8.6	0.000&lt;BR /&gt;
001-001	CYCLE 4	3	3	LYMPH NODE	PRE-VASCULAR	02Oct2008	SPIRAL CT	1.3	cm	8.6	8.6	0.000&lt;BR /&gt;
001-001	CYCLE 4	3	4	LYMPH NODE	AORTICOPULMONARY	02Oct2008	SPIRAL CT	1.4	cm	8.6	8.6	0.000&lt;BR /&gt;
001-001	CYCLE 4	3	5	LYMPH NODE	AORTICOPULMONARY #2	02Oct2008	SPIRAL CT	1	cm	8.6	8.6	0.000&lt;BR /&gt;
001-001	CYCLE 4	3	6	LYMPH NODE	PRE-CARINAL	02Oct2008	SPIRAL CT	0.8	cm	8.6	8.6	0.000&lt;BR /&gt;
001-001	CYCLE 6	4	1	LUNG	LEFT UPPER LOBE	18Nov2008	SPIRAL CT	3.2	cm	7.6	7.6	-0.116&lt;BR /&gt;
001-001	CYCLE 6	4	2	LYMPH NODE	LEFT AXILLA	18Nov2008	SPIRAL CT	0	cm	7.6	7.6	0.000&lt;BR /&gt;
001-001	CYCLE 6	4	3	LYMPH NODE	PRE-VASCULAR	18Nov2008	SPIRAL CT	1.3	cm	7.6	7.6	0.000&lt;BR /&gt;
001-001	CYCLE 6	4	4	LYMPH NODE	AORTICOPULMONARY	18Nov2008	SPIRAL CT	1.5	cm	7.6	7.6	0.000&lt;BR /&gt;
001-001	CYCLE 6	4	5	LYMPH NODE	AORTICOPULMONARY #2	18Nov2008	SPIRAL CT	0.8	cm	7.6	7.6	0.000&lt;BR /&gt;
001-001	CYCLE 6	4	6	LYMPH NODE	PRE-CARINAL	18Nov2008	SPIRAL CT	0.8	cm	7.6	7.6	0.000&lt;BR /&gt;
001-001	CYCLE 9	7	1	LUNG	LEFT UPPER LOBE	18Mar2009	SPIRAL CT	2.6	cm	4.8	4.8	-0.368&lt;BR /&gt;
001-001	CYCLE 9	7	2	LYMPH NODE	LEFT AXILLA	18Mar2009	SPIRAL CT	0	cm	4.8	4.8	0.000&lt;BR /&gt;
001-001	CYCLE 9	7	3	LYMPH NODE	PRE-VASCULAR	18Mar2009	SPIRAL CT	0	cm	4.8	4.8	0.000&lt;BR /&gt;
001-001	CYCLE 9	7	4	LYMPH NODE	AORTIOCOPULMONARY	18Mar2009	SPIRAL CT	0.9	cm	4.8	4.8	0.000&lt;BR /&gt;
001-001	CYCLE 9	7	5	LYMPH NODE	AORTIOCOPULMONARY #2	18Mar2009	SPIRAL CT	0.5	cm	4.8	4.8	0.000&lt;BR /&gt;
001-001	CYCLE 9	7	6	LYMPH NODE	PRE-CARINAL	18Mar2009	SPIRAL CT	0.8	cm	4.8	4.8	0.000&lt;BR /&gt;
001-001	CYCLE 11	8	1	LUNG	LEFT UPPER LOBE	08Apr2009	SPIRAL CT	2.4	cm	4.5	4.5	-0.062&lt;BR /&gt;
001-001	CYCLE 11	8	2	LYMPH NODE	LEFT AXILLA	08Apr2009	SPIRAL CT	0	cm	4.5	4.5	0.000&lt;BR /&gt;
001-001	CYCLE 11	8	3	LYMPH NODE	PRE-VASCULAR	08Apr2009	SPIRAL CT	0	cm	4.5	4.5	0.000&lt;BR /&gt;
001-001	CYCLE 11	8	4	LYMPH NODE	ANTICOPULMONARY	08Apr2009	SPIRAL CT	0.9	cm	4.5	4.5	0.000&lt;BR /&gt;
001-001	CYCLE 11	8	5	LYMPH NODE	ANTICOPULMONARY #2	08Apr2009	SPIRAL CT	0.5	cm	4.5	4.5	0.000&lt;BR /&gt;
001-001	CYCLE 11	8	6	LYMPH NODE	PRECARONAL	08Apr2009	SPIRAL CT	0.7	cm	4.5	4.5	0.000&lt;BR /&gt;
001-001	UNSCHEDULED	5	1	LUNG	LEFT UPPER LOBE	08May2009	SPIRAL CT	2.5	cm	4.6	4.5	0.022&lt;BR /&gt;
001-001	UNSCHEDULED	5	2	LUNG	LEFT AXILLA	08May2009	SPIRAL CT	0	cm	4.6	4.5	0.022&lt;BR /&gt;
001-001	UNSCHEDULED	5	3	LYMPH NODE	PRE-VASCULAR	08May2009	SPIRAL CT	0	cm	4.6	4.5	0.022&lt;BR /&gt;
001-001	UNSCHEDULED	5	4	LYMPH NODE	AORTICOPULMONARY	08May2009	SPIRAL CT	0.8	cm	4.6	4.5	0.022&lt;BR /&gt;
001-001	UNSCHEDULED	5	5	LYMPH NODE	AORTICOPULMONARY #2	08May2009	SPIRAL CT	0.5	cm	4.6	4.5	0.022&lt;BR /&gt;
001-001	UNSCHEDULED	5	6	LYMPH NODE	PRECARINAL	08May2009	SPIRAL CT	0.8	cm	4.6	4.5	0.022&lt;BR /&gt;
001-001	CYCLE 13	9	1	LUNG	LEFT UPPER LOBE	01Jun2009	SPIRAL CT	2.5	cm	7	4.5	0.556&lt;BR /&gt;
001-001	CYCLE 13	9	2	LYMPH NODE	LEFT AXILLA	01Jun2009	SPIRAL CT	0	cm	7	4.5	0.556&lt;BR /&gt;
001-001	CYCLE 13	9	3	LYMPH NODE	PRE-VASCULAR	01Jun2009	SPIRAL CT	0	cm	7	4.5	0.556&lt;BR /&gt;
001-001	CYCLE 13	9	4	LYMPH NODE	AORTICOPULMONARY	01Jun2009	SPIRAL CT	0.9	cm	7	4.5	0.556&lt;BR /&gt;
001-001	CYCLE 13	9	5	LYMPH NODE	AORTICOPULMONARY #2	01Jun2009	SPIRAL CT	0.6	cm	7	4.5	0.556&lt;BR /&gt;
001-001	CYCLE 13	9	6	LYMPH NODE	PRECARINAL	01Jun2009	SPIRAL CT	0.8	cm	7	4.5	0.556&lt;BR /&gt;
001-001	CYCLE 13	9	7	SKIN/SOFT TISSUE	PERICARDIAL FAT	01Jun2009	SPIRAL CT	2.2	cm	7	4.5	0.556</description>
      <pubDate>Tue, 16 Mar 2010 21:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68905#M6870</guid>
      <dc:creator>psusudzi92</dc:creator>
      <dc:date>2010-03-16T21:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lesion diameter summary check</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68906#M6871</link>
      <description>Look at using PROC SUMMARY to create a total by SUBJID and then use a DATA step MERGE with a BY to merge back onto your data file with your SUM total for analysis.  It's possible as well with PROC SQL and a JOIN.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search arguments, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
data step merge processing site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
data step merge processing column total site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
proc sql join calculate total site:sas.com</description>
      <pubDate>Tue, 16 Mar 2010 22:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68906#M6871</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-16T22:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lesion diameter summary check</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68907#M6872</link>
      <description>Thanks Scott, your input is appreciated!&lt;BR /&gt;
&lt;BR /&gt;
John</description>
      <pubDate>Wed, 17 Mar 2010 14:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Lesion-diameter-summary-check/m-p/68907#M6872</guid>
      <dc:creator>psusudzi92</dc:creator>
      <dc:date>2010-03-17T14:01:24Z</dc:date>
    </item>
  </channel>
</rss>

