<?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: Same program not working in SAS Studio but working SAS Base 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Same-program-not-working-in-SAS-Studio-but-working-SAS-Base-9-4/m-p/745461#M233664</link>
    <description>&lt;P&gt;Define "not working".&amp;nbsp; Show the SAS log and/or output.&lt;/P&gt;
&lt;P&gt;Paste it as text into the window that pops up when you click on the Insert Code button on the forum editor.&lt;/P&gt;
&lt;PRE&gt;1511  %let N=120;
1512  data CIop;
1513  do i=117 to &amp;amp;N;
SYMBOLGEN:  Macro variable N resolves to 120
1514
1515  retain N x p L U alpha;
1516  p=i/&amp;amp;N;
SYMBOLGEN:  Macro variable N resolves to 120
1517  alpha=0.05;
1518  if p=0 then L=0;
1519  if p=1 then U=1;
1520  if p ne 0 then L=(1-betainv(1-alpha/2, &amp;amp;N-i+1, i));
SYMBOLGEN:  Macro variable N resolves to 120
1521  if p ne 1 then U=betainv (1-alpha/2, i+1, &amp;amp;N-i);
SYMBOLGEN:  Macro variable N resolves to 120
1522  N=&amp;amp;N;
SYMBOLGEN:  Macro variable N resolves to 120
1523  x=i;
1524  **diff=L-U;
1525  diff1=L-p;
1526  diff2=round((U-L)/2*100, .01);
1527  output;
1528  end;
1529  run;

NOTE: The data set WORK.CIOP has 4 observations and 9 variables.
NOTE: DATA statement used (Total process time):
      real time           0.08 seconds
      cpu time            0.03 seconds


1530  proc print data=CIop;
1531  var N x p L U diff2;
1532  run;

NOTE: There were 4 observations read from the data set WORK.CIOP.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.09 seconds
&lt;/PRE&gt;
&lt;PRE&gt;Obs     N      x        p          L          U       diff2

 1     120    117    0.97500    0.92868    0.99481     3.31
 2     120    118    0.98333    0.94109    0.99798     2.84
 3     120    119    0.99167    0.95444    0.99979     2.27
 4     120    120    1.00000    0.96973    1.00000     1.51
&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 Jun 2021 13:33:52 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-06-03T13:33:52Z</dc:date>
    <item>
      <title>Same program not working in SAS Studio but working SAS Base 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Same-program-not-working-in-SAS-Studio-but-working-SAS-Base-9-4/m-p/745453#M233658</link>
      <description>&lt;P&gt;I tried this below program its working in my SAS Base 9.4 version but not working in SAS Studio. Could you pls help me why is it, Is there anything i'm missing-&lt;/P&gt;&lt;P&gt;##############&lt;/P&gt;&lt;P&gt;%let N=120;&lt;BR /&gt;data CIop;&lt;BR /&gt;do i=117 to &amp;amp;N;&lt;/P&gt;&lt;P&gt;retain N x p L U alpha;&lt;BR /&gt;p=i/&amp;amp;N;&lt;BR /&gt;alpha=0.05;&lt;BR /&gt;if p=0 then L=0;&lt;BR /&gt;if p=1 then U=1;&lt;BR /&gt;if p ne 0 then L=(1-betainv(1-alpha/2, &amp;amp;N-i+1, i));&lt;BR /&gt;if p ne 1 then U=betainv (1-alpha/2, i+1, &amp;amp;N-i);&lt;BR /&gt;N=&amp;amp;N;&lt;BR /&gt;x=i;&lt;BR /&gt;**diff=L-U;&lt;BR /&gt;diff1=L-p;&lt;BR /&gt;diff2=round((U-L)/2*100, .01);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=CIop;&lt;BR /&gt;var N x p L U diff2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;###############&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 12:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Same-program-not-working-in-SAS-Studio-but-working-SAS-Base-9-4/m-p/745453#M233658</guid>
      <dc:creator>Akter</dc:creator>
      <dc:date>2021-06-03T12:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Same program not working in SAS Studio but working SAS Base 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Same-program-not-working-in-SAS-Studio-but-working-SAS-Base-9-4/m-p/745461#M233664</link>
      <description>&lt;P&gt;Define "not working".&amp;nbsp; Show the SAS log and/or output.&lt;/P&gt;
&lt;P&gt;Paste it as text into the window that pops up when you click on the Insert Code button on the forum editor.&lt;/P&gt;
&lt;PRE&gt;1511  %let N=120;
1512  data CIop;
1513  do i=117 to &amp;amp;N;
SYMBOLGEN:  Macro variable N resolves to 120
1514
1515  retain N x p L U alpha;
1516  p=i/&amp;amp;N;
SYMBOLGEN:  Macro variable N resolves to 120
1517  alpha=0.05;
1518  if p=0 then L=0;
1519  if p=1 then U=1;
1520  if p ne 0 then L=(1-betainv(1-alpha/2, &amp;amp;N-i+1, i));
SYMBOLGEN:  Macro variable N resolves to 120
1521  if p ne 1 then U=betainv (1-alpha/2, i+1, &amp;amp;N-i);
SYMBOLGEN:  Macro variable N resolves to 120
1522  N=&amp;amp;N;
SYMBOLGEN:  Macro variable N resolves to 120
1523  x=i;
1524  **diff=L-U;
1525  diff1=L-p;
1526  diff2=round((U-L)/2*100, .01);
1527  output;
1528  end;
1529  run;

NOTE: The data set WORK.CIOP has 4 observations and 9 variables.
NOTE: DATA statement used (Total process time):
      real time           0.08 seconds
      cpu time            0.03 seconds


1530  proc print data=CIop;
1531  var N x p L U diff2;
1532  run;

NOTE: There were 4 observations read from the data set WORK.CIOP.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.09 seconds
&lt;/PRE&gt;
&lt;PRE&gt;Obs     N      x        p          L          U       diff2

 1     120    117    0.97500    0.92868    0.99481     3.31
 2     120    118    0.98333    0.94109    0.99798     2.84
 3     120    119    0.99167    0.95444    0.99979     2.27
 4     120    120    1.00000    0.96973    1.00000     1.51
&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jun 2021 13:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Same-program-not-working-in-SAS-Studio-but-working-SAS-Base-9-4/m-p/745461#M233664</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-03T13:33:52Z</dc:date>
    </item>
  </channel>
</rss>

