<?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: issue with dosubl, proc document and titles in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/592296#M169810</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154244"&gt;@ecofred&lt;/a&gt;&amp;nbsp;Did you hear anything interesting from tech support?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 19:50:16 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2019-09-27T19:50:16Z</dc:date>
    <item>
      <title>issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/586686#M167488</link>
      <description>&lt;P&gt;Given the 2 files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- doc_test.sas ----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=testdoc(write);

	title1 j=c 'CARS' j=r 'page 0 of 100';
	title2 'this is title 2';
	footnote 'this is a footnote';
	
	proc contents data=sashelp.cars; run;
	
ods document close;

Title 'WHERE IS THE OBTITLE???';
proc document name=testdoc(read);
	list / details levels=all;
	obtitle \Contents#1\DataSet#1\EngineHost#1 show;
	replay;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- procdoc_subl.sas --&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Title; Footnote;&lt;BR /&gt;%* find the parent folder ------;
data _null_;
	dir = prxchange('s/[\w\.]*$//',-1, "&amp;amp;_SASPROGRAMFILE.");
	call symputx('mydir', dir);
run;
&lt;BR /&gt;
data _null_;
	rc=dosubl("%include '&amp;amp;mydir.doc_test.sas' / source2;");
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if I run 'procdoc_subl.sas' (with 'doc_test.sas' in the same folder) in&amp;nbsp;&lt;SPAN&gt;SAS Studio in the SAS University Edition,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then the dosubl part fail to 'SHOW' / or find the 'OBTITLE' are any kind of title from the ItemStore.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also the replay is missing the Titles&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FCMP/RUN_MACRO or RUN_SASFILE also fails&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone reproduce this issue? Or have any idea what is missing?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 10:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/586686#M167488</guid>
      <dc:creator>ecofred</dc:creator>
      <dc:date>2019-09-06T10:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/586790#M167509</link>
      <description>Can you verify the code in procdoc_subl.sas?&lt;BR /&gt;I think it is not correct.</description>
      <pubDate>Fri, 06 Sep 2019 15:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/586790#M167509</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-09-06T15:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/586847#M167519</link>
      <description>I did check again; the program works if the 2 are in the same folder and run in SAS Studio.&lt;BR /&gt;Can point to the incorrect element?&lt;BR /&gt;I will add the log for 'procdoc_subl.sas' in the thread.</description>
      <pubDate>Fri, 06 Sep 2019 19:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/586847#M167519</guid>
      <dc:creator>ecofred</dc:creator>
      <dc:date>2019-09-06T19:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/586848#M167520</link>
      <description>&lt;P&gt;-------- the log (with option added to show macro elements) ---------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 70         
 71         option MLOGIC SYMBOLGEN MPRINT;
 72         Title; Footnote;%* find the parent folder ------;
 73         data _null_;
 74         dir = prxchange('s/[\w\.]*$//',-1, "&amp;amp;_SASPROGRAMFILE.");
 SYMBOLGEN:  Macro variable _SASPROGRAMFILE resolves to /home/fclems0/procdoc_dosubl.sas
 SYMBOLGEN:  Some characters in the above value which were subject to macro quoting have been unquoted for printing.
 75         call symputx('mydir', dir);
 76         run;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              490.93k
       OS Memory           29348.00k
       Timestamp           09/06/2019 07:01:54 PM
       Step Count                        45  Switch Count  0
       Page Faults                       0
       Page Reclaims                     97
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 
 77         
 78         data _null_;
 79         rc=dosubl("%include '&amp;amp;mydir.doc_test.sas' / source2;");
 SYMBOLGEN:  Macro variable MYDIR resolves to /home/fclems0/
 80         run;
 
 NOTE: %INCLUDE (level 1) file /home/fclems0/doc_test.sas is file /home/fclems0/doc_test.sas.
 NOTE: PROCEDURE CONTENTS used (Total process time):
       real time           0.07 seconds
       user cpu time       0.07 seconds
       system cpu time     0.00 seconds
       memory              3794.96k
       OS Memory           31400.00k
       Timestamp           09/06/2019 07:01:54 PM
       Step Count                        46  Switch Count  0
       Page Faults                       0
       Page Reclaims                     363
       Page Swaps                        0
       Voluntary Context Switches        5
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           136
       
 
 NOTE: PROCEDURE DOCUMENT used (Total process time):
       real time           0.09 seconds
       user cpu time       0.09 seconds
       system cpu time     0.00 seconds
       memory              3805.59k
       OS Memory           31652.00k
       Timestamp           09/06/2019 07:01:54 PM
       Step Count                        46  Switch Count  0
       Page Faults                       0
       Page Reclaims                     71
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           240
       
 
 NOTE: %INCLUDE (level 1) ending.
 NOTE: DATA statement used (Total process time):
       real time           0.17 seconds
       user cpu time       0.17 seconds
       system cpu time     0.00 seconds
       memory              3805.59k
       OS Memory           31652.00k
       Timestamp           09/06/2019 07:01:54 PM
       Step Count                        46  Switch Count  12
       Page Faults                       0
       Page Reclaims                     622
       Page Swaps                        0
       Voluntary Context Switches        92
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           496
       
 
 81         
 82         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable GRAPHTERM resolves to GOPTIONS NOACCESSIBLE;
 93         &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Sep 2019 19:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/586848#M167520</guid>
      <dc:creator>ecofred</dc:creator>
      <dc:date>2019-09-06T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587767#M167895</link>
      <description>&lt;P&gt;My remark with the code has to do with the fact that I don't understand where you declare the _SASPROGRAMFILE macro variable.&lt;/P&gt;
&lt;P&gt;I also suspect the title1 statement is an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest to change the code for doc_test.sas to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=testdoc(write);

	title1 j=c 'CARS';
	title2 'this is title 2';
	title3 j=r 'page 0 of 100';
	footnote 'this is a footnote';
	
	proc contents data=sashelp.cars; run;
	
ods document close;

Title 'WHERE IS THE OBTITLE???';
proc document name=testdoc(read);
	list / details levels=all;
	obtitle \Contents#1\DataSet#1\EngineHost#1 show;
	replay;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Maybe that gives you a clue for further analysis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards, Jos&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 09:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587767#M167895</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-09-11T09:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587863#M167927</link>
      <description>&lt;P&gt;Dear Jos,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Multiple J= seems to be a SAS feature (&lt;A href="http://support.sas.com/kb/24/492.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/24/492.html)&lt;/A&gt; and the effect I wanted: both on the same line (see picture below to illustrate that). I don't want to loose 1 line on my page &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="multi_j_title.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32377iAAC854923716E599/image-size/medium?v=v2&amp;amp;px=400" role="button" title="multi_j_title.png" alt="multi_j_title.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just noticed that the standard HTML/'Result' get it a bit funky with multiple J=: they maybe way over on the right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I would not relate it to my question: why does proc document forget about OBTITLE with DOSUBL/%include ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I did give a try to no multi j= in title1, but the obtitle are still missing when I want to use/list them with the dosubl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &amp;amp;&lt;SPAN&gt;_SASPROGRAMFILE. macro is set up by the SAS Studio Ondemand University edition session (I used &lt;A href="https://odamid.oda.sas.com/SASStudio" target="_blank" rel="noopener"&gt;https://odamid.oda.sas.com/SASStudio&lt;/A&gt;&amp;nbsp;to make it reproducible). It is referenced in&amp;nbsp;&lt;A href="http://support.sas.com/kb/24/301.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/24/301.html&lt;/A&gt;.(this is one of the reason why I specified working in SAS Studio).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;But I could indeed have commented that in my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-- procdoc_subl.sas -- v2 with comments and option to expand macro in log.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;option MLOGIC SYMBOLGEN MPRINT;

%*
this program make use of the SAS Studio '_SASPROGRAMFILE' macro, thus
run only in SAS Studio ( SAS® Enterprise Guide seems also ok)
;

Title; Footnote;&lt;BR /&gt;&lt;BR /&gt;%* find the parent folder ------;
data _null_;
	dir = prxchange('s/[\w\.]*$//',-1, "&amp;amp;_SASPROGRAMFILE.");
	call symputx('mydir', dir);
run;

data _null_;
	rc=dosubl("%include '&amp;amp;mydir.doc_test.sas' / source2;");
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;frederic.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 13:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587863#M167927</guid>
      <dc:creator>ecofred</dc:creator>
      <dc:date>2019-09-11T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587913#M167944</link>
      <description>&lt;P&gt;What happens when you change the doc_test.sas in your environment to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=testdoc(write);

	title1 j=l 'CARS' j=c 'page 0 of 100';
	title2 j=c 'CARS' j=r 'page 0 of 100';
	title3 j=l 'CARS' j=r 'page 0 of 100';
	footnote 'this is a footnote';
	
	proc contents data=sashelp.cars; run;
	
ods document close;

Title4 'WHERE IS THE OBTITLE???';
proc document name=testdoc(read);
	list / details levels=all;
*	obtitle \Contents#1\DataSet#1\EngineHost#1 show;
	replay / actitle acfootn;
run;
quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 15:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587913#M167944</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-09-11T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587916#M167945</link>
      <description>&lt;P&gt;I don't know much about PROC DOCUMENT, but I've been trying to figure out various corners of DOSUBL, so this is interesting.&amp;nbsp; I'm running 9.4M4 on windows, display manager SAS.&amp;nbsp; I tried a simplified test, and can't explain the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following code creates a document:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=testdoc(write);
  title1 "My custom title for CARS";
  footnote "My custom footnote for CARS";
  proc print data=sashelp.cars(obs=3); 
  run;
  title1 ;
  footnote1 ;
ods document close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I assume the titles and footnotes are stored as part of the document, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I then replay the document, I get the titles and footnotes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc document name=testdoc(read);
	replay;
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If use replay the document in the DOSUBL side session, I don't get the titles and footnotes, surprisingly:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	rc=dosubl('proc document name=testdoc(read);replay;run;');
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Clearly the document is read, just somehow the titles/footnotes aren't being read, or are being read but aren't being honored (?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With your %include approach, you create the document and replay it in the DOSUBL side session.&amp;nbsp; I tried that too, without the %include.&amp;nbsp; Same result (no titles/footnotes) on the replay:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  rc=dosubl('
ods document name=testdoc(write);
  title1 "My custom title for CARS";
  footnote "My custom footnote for CARS";
  proc print data=sashelp.cars(obs=3); 
  run;
  title1 ;
  footnote1 ;
ods document close;

proc document name=testdoc(read);
	replay;
run;
quit;  
');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would have hoped all three of those code blocks would show the titles when replayed.&amp;nbsp; I would suggest sending this in to tech support, to ask why PROC DOCUMENT isn't reading the titles when it is called inside DOSUBL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a lot of magic in DOSUBL, but also some interesting side effects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 15:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587916#M167945</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-11T15:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587932#M167951</link>
      <description>&lt;P&gt;Looks like the issue is being caused by use of DOSUBL() function.&lt;/P&gt;
&lt;P&gt;Are you just curious about why DOSUBL() is causing this issue? Or do you have an actual need to get your program to run?&lt;/P&gt;
&lt;P&gt;If the later then what is the reason that your program is trying to use DOSUBL() instead of just %INCLUDE, CALL EXECUTE(), macro code or other code generation methods?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 16:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587932#M167951</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-11T16:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587950#M167961</link>
      <description>&lt;P&gt;Well, I'm curious every time I'm surprised by DOSUBL behavior.&amp;nbsp; The docs are fairly light as to what it's fair to expect from DOSUBL .&amp;nbsp; = )&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 17:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587950#M167961</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-11T17:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587988#M167975</link>
      <description>&lt;P&gt;If I code an explicit ODS statement, I do get the title in the PDF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even when the ODS statement is outside of the DOSUBL block.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods pdf file="%sysfunc(pathname(work))\foo.pdf" ;
data _null_;
  rc=dosubl('
    proc document name=testdoc(read);
      replay;
    run;
    quit ;
  ');
run;
ods pdf close ;&lt;/PRE&gt;
&lt;P&gt;So looks like PROC DOCUMENT may be doing it's part, but DOSUBL is having a hard time returning titles to the default output (?).&amp;nbsp; In my case, my default output destination is Display Manager .lst, assume in Studio you're getting some flavor of ODS HTML.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 18:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/587988#M167975</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-11T18:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588011#M167986</link>
      <description>&lt;P&gt;dear Jos,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware of the active*,&amp;nbsp;I tried it before starting this post and it is not reliable, It messes with the font/style.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my main issue with the active* in the current context, is that I then have to rely on the right title and footnotes being loaded at the right time and the right place once again.&lt;/P&gt;&lt;P&gt;It is an asumption I can not rely on because between the ods document and the replay, some titles may have changed, and it misses the point of an ods item being independant from the rest. All Batterie included is what I like about the item store.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the reason why I have&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;Title&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'WHERE IS THE OBTITLE???'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the middle of '&lt;SPAN&gt;doc_test.sas', To also check if the Titles from the ods object are reused instead of the current session title.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, setting element title, where page break is 'before', with the obtitle statement is not a viable solution:&lt;/P&gt;&lt;P&gt;- it is not multi j= compatible (as far as I know)&lt;/P&gt;&lt;P&gt;- requires to set again what is expected to have already been done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue/setup is quite convoluted... but I would still expect it to work.&lt;/P&gt;&lt;P&gt;It could technically be refactored, but this is not an option :(. I'm locked with it for some external reasons, but that is an other story.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Frederic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 20:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588011#M167986</guid>
      <dc:creator>ecofred</dc:creator>
      <dc:date>2019-09-11T20:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588039#M168002</link>
      <description>&lt;P&gt;Dear Tom,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I do have a practical need, but i'm also curious because it does not fit in my current model of how DOSUBL (and RUN_FILE) works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of output names in a dataset, each output is associated to a file. Each files produce 3 things: a dataset, a ods document object, a pdf (replay).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a DATA STEP, I visit the dataset, infer the path to each output files, give it to dosubl/%include, check that the files where produce and create new variable to report the success/failure for the production of each outputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An other step is to let run a QC program. this gives 'only' a dataset for each output. I can then dosubl or run_macro to capture the &amp;amp;SYSINFO. value of the proc compare.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compared to the call execute, I get better encapsulation/local properties for my processes and can streamline the success/failure directly to the PDV (did I mentionned how gorgious i find the DOSUBL/RUN_* function?). all in one path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With call execute I have to insert the progresses to another dataset, open it many times and take the risk of having some concurrency issues.&lt;/P&gt;&lt;P&gt;From experience I find DOSUBL more reliable than CALL EXECUTE,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Title 'DOSUBL = reliable';
data zz;
	rc=dosubl("proc contents data=sashelp.cars short; run';");
	output;
	rc=dosubl("proc contents data=sashelp.airline short; run;");
	output;
run;

Title 'CALL EXECUTE leak: AIRLINE missing!';
data zz;
	call execute("proc contents data=sashelp.cars short; run';");
	call execute("proc contents data=sashelp.airline short; run;");
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please let this code illustrate my point:. a typo is placed in the form of *run';* in the 2 datasteps. luckily for CALL EXECUTE, the 2nd instruction is not mission critical... (did I mentionned that I can not trust the output programs).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So technically, this dosubl/proc document issue is the last challenge in an attempt of abstracting the full processes line (output generation + Quality check) in what I would define as a reliable and metadata-driven and BASE SAS only solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, in a sane world, I would refactor more than one part and make it work, but I'm not living in a sane world, and I can not touch programs generating the outputs.(lack of time and QC issue are the 2 main reasons).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a call execute as a 2d pass to correct the outputs, (following the 'first make it work' principle &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ). But it seems&amp;nbsp;so close,..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frederic&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 21:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588039#M168002</guid>
      <dc:creator>ecofred</dc:creator>
      <dc:date>2019-09-11T21:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588049#M168007</link>
      <description>&lt;P&gt;Dear Quentin, I answered to Tom below, it may give some context.&lt;/P&gt;&lt;P&gt;Yes, it seems that our assumption are not up to the fact &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran your 3 versions one after an other in a same .sas (I reset title and footnote after each) in SAS Studio&lt;/P&gt;&lt;P&gt;In my SAS Studio session, the 1 and 2 succeed, but... of course ... the 3rd fails... (see the last page of the pdf)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;fred&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 22:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588049#M168007</guid>
      <dc:creator>ecofred</dc:creator>
      <dc:date>2019-09-11T22:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588065#M168014</link>
      <description>&lt;P&gt;Interesting, I'm surprised #2 succeeded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest sending something simple like #3 to tech support.&amp;nbsp; I think we should expect that code executed by DOSUBL() will produce the same results as code executed outside of DOSUBL(), until/unless there is documentation to explain the difference (or acknowledgement that it's a bug).&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 23:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588065#M168014</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-11T23:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588107#M168035</link>
      <description>The doc is fine, but the notes/issues on dosubl shows that this is not the only limitation. The closest one to my issue may well be &lt;A href="http://support.sas.com/kb/55/931.html" target="_blank"&gt;http://support.sas.com/kb/55/931.html&lt;/A&gt; .&lt;BR /&gt;&lt;BR /&gt;But I should give support a try. I exhausted all the other ressources. I have to give up expected reliability for a working solution... Muhh :(... But the hope should stay</description>
      <pubDate>Thu, 12 Sep 2019 05:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/588107#M168035</guid>
      <dc:creator>ecofred</dc:creator>
      <dc:date>2019-09-12T05:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dosubl, proc document and titles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/592296#M169810</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154244"&gt;@ecofred&lt;/a&gt;&amp;nbsp;Did you hear anything interesting from tech support?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 19:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/issue-with-dosubl-proc-document-and-titles/m-p/592296#M169810</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-09-27T19:50:16Z</dc:date>
    </item>
  </channel>
</rss>

