<?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: if with multiple conditions across observations in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519864#M3885</link>
    <description>&lt;P&gt;What values are not resolving? Please post the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you want to help us help you, post some example data for us to test.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 08:58:43 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-12-10T08:58:43Z</dc:date>
    <item>
      <title>if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519857#M3883</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to resolve below&amp;nbsp; condition. But the values are not resolving.&lt;/P&gt;&lt;P&gt;Can you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF MAX_NEW_Sequence_Number &amp;gt;= 100, then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEW_Sequence_Number between 0 and 99, populate '01' in NEW_Provider_Number_Suffix&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF NEW_Sequence_Number &amp;gt;=100 then,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;populate '02' in NEW_Provider_Number_Suffix and add 1 to NEW_Sequence_Number.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAS CODE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; test2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; test1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; MAX_NEW_SEQ &amp;gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; NEW_LOC_SEQ &amp;gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; NEW_LOC_SEQ =&amp;lt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;99&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; NEW_PROVIDER_NUMBER_SUFFIX=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;"01"&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt; NEW_LOC_SEQ &amp;gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="1"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;NEW_PROVIDER_NUMBER_SUFFIX=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="1"&gt;'02'&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="1"&gt;NEW_LOC_SEQ_N=input(NEW_LOC_SEQ,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt;) +&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="1"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="1"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="1"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 08:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519857#M3883</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-12-10T08:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519864#M3885</link>
      <description>&lt;P&gt;What values are not resolving? Please post the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you want to help us help you, post some example data for us to test.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 08:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519864#M3885</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-12-10T08:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519865#M3886</link>
      <description>&lt;P&gt;It seems that you miss ELSE after first END;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test2;
 set test1;
       if MAX_NEW_SEQ &amp;gt;=100 then do;
          if NEW_LOC_SEQ &amp;gt;=0 and NEW_LOC_SEQ =&amp;lt; 99 then
             NEW_PROVIDER_NUMBER_SUFFIX="01";
     end;  else
     if NEW_LOC_SEQ &amp;gt;=100 then do;
        NEW_PROVIDER_NUMBER_SUFFIX='02';
        NEW_LOC_SEQ_N=input(NEW_LOC_SEQ,8.) +1;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519865#M3886</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-12-10T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519866#M3887</link>
      <description>&lt;PRE&gt;1                                                          The SAS System                      Monday, December 10, 2018 01:27:00 AM

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='PRACTITIONER_CROSSWALK_0612_';
4          %LET _CLIENTPROJECTPATH='';
5          %LET _CLIENTPROJECTNAME='';
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
9          OPTIONS DEV=ACTIVEX;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
11         FILENAME EGSR TEMP;
12         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
13             STYLE=HtmlBlue
14             STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
15             NOGTITLE
16             NOGFOOTNOTE
17             GPATH=&amp;amp;sasworklocation
18             ENCODING=UTF8
19             options(rolap="on")
20         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
21         
22         GOPTIONS ACCESSIBLE;
23         proc sql;
24          create table test as
25          select *,max(NEW_LOC_SEQ) as MAX_NEW_SEQ from PRACTITIONER_CROSSWALK_
26          group by NEW_PROVIDER_NUMBER;
NOTE: The query requires remerging summary statistics back with the original data.
NOTE: Table WORK.TEST created, with 1747357 rows and 14 columns.

27          quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           3.35 seconds
      cpu time            2.11 seconds
      

28         
29         proc sql;
30          create table test1 as
31          select NEW_PROVIDER_NUMBER,NEW_PROVIDER_NUMBER_SUFFIX,NEW_LOC_SEQ,MAX_NEW_SEQ from test;
NOTE: Table WORK.TEST1 created, with 1747357 rows and 4 columns.

32         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.24 seconds
      cpu time            0.22 seconds
      

33         
34         data test2;
35          set test1;
36         if MAX_NEW_SEQ &amp;gt;=100 then do;
37         	if NEW_LOC_SEQ &amp;gt;=0 and NEW_LOC_SEQ =&amp;lt; 99 then NEW_PROVIDER_NUMBER_SUFFIX="01";
38         end;
39         if NEW_LOC_SEQ &amp;gt;=100 then do;
40         NEW_PROVIDER_NUMBER_SUFFIX='02';
41         NEW_LOC_SEQ_N=input(NEW_LOC_SEQ,8.)	+1;
42         end;
2                                                          The SAS System                      Monday, December 10, 2018 01:27:00 AM

43         run;

NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).
      41:21   
NOTE: Missing values were generated as a result of performing an operation on missing values.
      Each place is given by: (Number of times) at (Line):(Column).
      12893 at 41:37   
NOTE: There were 1747357 observations read from the data set WORK.TEST1.
NOTE: The data set WORK.TEST2 has 1747357 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.19 seconds
      cpu time            0.15 seconds
      

44         
45         GOPTIONS NOACCESSIBLE;
46         %LET _CLIENTTASKLABEL=;
47         %LET _CLIENTPROJECTPATH=;
48         %LET _CLIENTPROJECTNAME=;
49         %LET _SASPROGRAMFILE=;
50         
51         ;*';*";*/;quit;run;
52         ODS _ALL_ CLOSE;
53         
54         
55         QUIT; RUN;
56         &lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519866#M3887</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-12-10T09:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519869#M3888</link>
      <description>&lt;P&gt;It looks like your not retaining any value, hence the next value is missing.&amp;nbsp; That is what it is saying in the log, missing values created.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I would suggest is thast you follow the guidance for posting a question.&amp;nbsp; Start by posting test data in the form of a datastep using the code window - its the {i} above post area:&lt;/P&gt;
&lt;P&gt;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then show what you want to see out from that test data.&amp;nbsp; This avoids us having to do this back and forth trying to guess and gives us something to work with.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am guessing that you just want to prefix a vaiable with 01 for first hundred, 02 for next etc.&amp;nbsp; If so maybe something like;&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  retain cnt;
  if mod(_n_,100)=0 then cnt=sum(cnt,1);
  var=cats(put(cnt,best.),var);
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519869#M3888</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-10T09:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519870#M3889</link>
      <description>&lt;P&gt;Please post example data in a data step (see my footnotes), and the expected output from that.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519870#M3889</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-10T09:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519885#M3893</link>
      <description>&lt;PRE&gt;data test;
input NEW_PROVIDER_NUMBER $ NEW_PROVIDER_NUMBER_SUFFIX $ NEW_LOC_SEQ MAX_NEW_SEQ;
cards;
003219469 00 4 4
003219469 00 3 14
003219469 00 2 4
003220507 00 98 105
003220507 00 99 105
003262020 00 100 100
003220507 00 98	105
003220507 00 99	105

;
run;

LOGIC:

IF MAX_NEW_Sequence_Number &amp;gt;= 100, then 

NEW_Sequence_Number between 0 and 99, populate '01' in NEW_Provider_Number_Suffix 

IF NEW_Sequence_Number &amp;gt;=100 then,

populate '02' in NEW_Provider_Number_Suffix and add 1 to NEW_Sequence_Number.&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519885#M3893</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-12-10T10:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519887#M3895</link>
      <description>&lt;P&gt;Thats great, but&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NEW_Sequence_Number&lt;/PRE&gt;
&lt;P&gt;Is never defined?&amp;nbsp; What is new sequence number?&amp;nbsp; Is it just observation number?&lt;/P&gt;
&lt;P&gt;As such I still go with:&lt;/P&gt;
&lt;PRE&gt;data test;
  input new_provider_number $ new_provider_number_suffix $ new_loc_seq max_new_seq;
cards;
003219469 00 4 4
003219469 00 3 14
003219469 00 2 4
003220507 00 98 105
003220507 00 99 105
003262020 00 100 100
003220507 00 98   105
003220507 00 99   105
;
run;

data want (drop=cnt);
  set test;
  retain cnt 1;
  if _n_/100 =0 then cnt=sum(cnt,1);
  new_provider_number_suffix=strip(put(cnt,z2.));
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519887#M3895</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-10T10:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519888#M3896</link>
      <description>&lt;P&gt;That is new_loc_seq&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519888#M3896</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-12-10T10:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519889#M3897</link>
      <description>&lt;P&gt;Then I really do not know what the problem is, or why your question refers to "multiple conditons across observations", as from what you have said and provided:&lt;/P&gt;
&lt;PRE&gt;data test;
  input new_provider_number $ new_provider_number_suffix $ new_loc_seq max_new_seq;
cards;
003219469 00 4 4
003219469 00 3 14
003219469 00 2 4
003220507 00 98 105
003220507 00 99 105
003262020 00 100 100
003220507 00 98   105
003220507 00 99   105
;
run;

data want;
  set test;
  if 0 &amp;lt;= new_loc_seq &amp;lt;= 99 then new_provider_number_suffix="01";
  else new_provider_number_suffix="02";
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519889#M3897</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-10T10:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519892#M3899</link>
      <description>&lt;P&gt;This is my requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If MAX NEW_Sequence_Number &amp;gt;= 100,&lt;BR /&gt;For records with NEW_Sequence_Number between 0 and 99, populate '01' in&lt;/P&gt;&lt;P&gt;For records with NEW_Sequence_Number &amp;gt;=100, populate '02' in NEW_Provider_Number_Suffix and add 1 to NEW_Sequence_Number.&lt;/P&gt;&lt;PRE&gt;data test2;
 set test1;
       if MAX_NEW_SEQ &amp;gt;=100 then do;
          if NEW_LOC_SEQ &amp;gt;=0 and NEW_LOC_SEQ =&amp;lt; 99 then
             NEW_PROVIDER_NUMBER_SUFFIX='01';
     end;  
else
     if NEW_LOC_SEQ &amp;gt;=100 then do;
        NEW_PROVIDER_NUMBER_SUFFIX='02';
        NEW_LOC_SEQ_N=input(NEW_LOC_SEQ,8.) +1;
    end;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519892#M3899</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-12-10T10:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519894#M3900</link>
      <description>&lt;P&gt;So something like:&lt;/P&gt;
&lt;PRE&gt;data test;
  input new_provider_number $ new_provider_number_suffix $ new_loc_seq max_new_seq;
cards;
003219469 00 4 4
003219469 00 3 14
003219469 00 2 4
003220507 00 98 105
003220507 00 99 105
003262020 00 100 100
003220507 00 98   105
003220507 00 99   105
;
run;

data want;
  set test;
  retain new_sequence_number 0;
  if 0 &amp;lt;= new_loc_seq &amp;lt;= 99 then new_provider_number_suffix="01";
  else do;
    new_provider_number_suffix="02";
    new_sequence_number=sum(new_sequence_number,1);
  end;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 10:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519894#M3900</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-10T10:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519898#M3901</link>
      <description>Thank you</description>
      <pubDate>Mon, 10 Dec 2018 11:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519898#M3901</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-12-10T11:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519899#M3902</link>
      <description>thank you for sugesstion</description>
      <pubDate>Mon, 10 Dec 2018 11:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519899#M3902</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-12-10T11:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions across observations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519900#M3903</link>
      <description>Thank you Sir for your quick sugesstion</description>
      <pubDate>Mon, 10 Dec 2018 11:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/if-with-multiple-conditions-across-observations/m-p/519900#M3903</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-12-10T11:03:47Z</dc:date>
    </item>
  </channel>
</rss>

