My remark with the code has to do with the fact that I don't understand where you declare the _SASPROGRAMFILE macro variable.
I also suspect the title1 statement is an issue.
I suggest to change the code for doc_test.sas to:
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;
Maybe that gives you a clue for further analysis.
Best regards, Jos
... View more