<?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: Adding obbnote in Proc Document causes table to disappear from replay in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/413842#M19872</link>
    <description>&lt;P&gt;It would help to provide an example using something with data we could use to duplicate the behavior such as the Proc Document examples us the SASHELP.Class data set and proc contents output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2017 23:36:57 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-11-15T23:36:57Z</dc:date>
    <item>
      <title>Adding obbnote in Proc Document causes table to disappear from replay</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/413821#M19871</link>
      <description>&lt;P&gt;I have a ODS Document that I've created to catch a lot of output (e.g. work.largedoc in example below), which needs to get parsed into several artifacts for documentation purposes (e.g. work.smalldoc in the example below)&amp;nbsp;using the&amp;nbsp;DOC statement in PROC DOCUMENT.&amp;nbsp; The following is a sample set of instructions I use to parse the large document into smaller ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc document name=work.largedoc;
 doc name=work.smalldoc(write);

 make \work.smalldoc\Model1#1 / last;
 copy
  \work.largedoc\Arima#1\Estimate#1\ParameterEstimates#1
, \work.largedoc\Arima#1\Estimate#1\FitStatistics#1
 to \work.smalldoc\Model1#1 / last;
*other things copied to file;

 obtitle \work.smalldoc\Model1#1\ParameterEstimates#1 "Forecasts from Outcome Analysis";
 obbnote \work.smalldoc\Model1#1\ParameterEstimates#1 "Model using initial set of input variables";

doc close;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I don't add the OBBNOTE, the FitStatistics#1 table appears as expected when I use&amp;nbsp;REPLAY within another PROC DOCUMENT call.&amp;nbsp; However, the FitStatistics#1 table goes missing is the&amp;nbsp;OBBNOTE statement is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build a process that avoids needing secondary text processing, but I need to reference that Fit Statistics table, so I cannot afford for it to go missing.&amp;nbsp; What do I need to do to fix this?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 22:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/413821#M19871</guid>
      <dc:creator>MarkMcCluskey</dc:creator>
      <dc:date>2017-11-15T22:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding obbnote in Proc Document causes table to disappear from replay</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/413842#M19872</link>
      <description>&lt;P&gt;It would help to provide an example using something with data we could use to duplicate the behavior such as the Proc Document examples us the SASHELP.Class data set and proc contents output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 23:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/413842#M19872</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-15T23:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding obbnote in Proc Document causes table to disappear from replay</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/414060#M19873</link>
      <description>&lt;P&gt;Here is code illustrating my problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
ods document name=work.largedoc(write);
*Airline model example;
data work.airlocal(drop=i);
 format date date9.;
 set sashelp.air;
 t = _N_;
 lg_air = log(air);
 output;
 if _N_ eq 144 then do;
  do i = 1 to 24;
   date=intnx('month','31DEC1960'd,i,'end');
   t=144+i;
   air=.;
   lg_air=.;
   output;
  end;
 end;
run;
proc arima data=work.airlocal(
 rename=(
  air      = y
  lg_air   = lg_y
 )
);
 identify var=lg_y stationarity=(PP) crosscorr=(t);
 estimate input=(t) p=(1)(12) q=(12);
 forecast id=t lead=24 out=work.fcst;
run;
data work.fcst;
 set work.fcst;
 air     = exp(lg_y);
 air_f   = exp(forecast+0.5*STD**2);
 air_l95 = exp(l95);
 air_u95 = exp(u95);
run;
proc sgplot data=work.fcst;
 scatter x=t y=air ;
 series  x=t y=air_f;
 band    x=t lower=air_l95 upper=air_u95 / transparency=.80;
run;
ods document close;

proc document name=work.largedoc;
 list / levels=all details;
run;

*Selecting only the ARIMA parameter table and fit statistics table;
proc document name=work.largedoc;
 doc name=work.smalldoc(write);
 make \work.smalldoc\Fit#1;
 copy \work.largedoc\Arima#1\Estimate#1\ParameterEstimates#1
     ,\work.largedoc\Arima#1\Estimate#1\FitStatistics#1
 to \work.smalldoc\Fit#1 / last;
 doc close;
run;

*Both show in replay;
proc document name=work.smalldoc;
 replay;
run;

*OBBNOTE added and fit statistics table goes missing;
proc document name=work.smalldoc;
 obbnote \Fit#1\ParameterEstimates#1 "This note";
 replay;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does adding an OBBNOTE hide the contents?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 15:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/414060#M19873</guid>
      <dc:creator>MarkMcCluskey</dc:creator>
      <dc:date>2017-11-16T15:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding obbnote in Proc Document causes table to disappear from replay</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/414083#M19874</link>
      <description>&lt;P&gt;Using the above example code, this doesn't even work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Split the two tables into two separate directories;
proc document name=work.largedoc;
 doc name=work.smalldoc(write);
 make \work.smalldoc\PEST#1;
 copy \work.largedoc\Arima#1\Estimate#1\ParameterEstimates#1
 to \work.smalldoc\PEST#1 / last;
 make \work.smalldoc\Fit#1;
 copy \work.largedoc\Arima#1\Estimate#1\FitStatistics#1
 to \work.smalldoc\Fit#1 / last;
 doc close;
run;

*Both appear as expected;
proc document name=work.smalldoc;
 replay;
run;

*Fit statistics table is missing, though the "The ARIMA Procedure" proctitle appears;
proc document name=work.smalldoc;
 obbnote \PEST#1\ParameterEstimates#1 "This note";
 replay \PEST#1;
 replay \Fit#1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm now at a loss.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 16:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Adding-obbnote-in-Proc-Document-causes-table-to-disappear-from/m-p/414083#M19874</guid>
      <dc:creator>MarkMcCluskey</dc:creator>
      <dc:date>2017-11-16T16:46:37Z</dc:date>
    </item>
  </channel>
</rss>

