data _null_; wrote:
> I would like to save the titles and footnotes as my program executes,
> change them, and later restore the saved titles and footnotes.
> It has been pointed out here in the past that SASHELP.VTITLE does not
> supply enough information to exactly reproduce the TITLES and FOOTNOTE
> The closest I have come to finding a solution that preserves the
> titles exactly is the output from PROC GOPTIONS FOOTNOTE;
Some factors contributing to this Dr.Jekyll and Dr.Jekyller is that Base and
Graph are separate products. A title with graphics options is 'not
understood' by ODS LISTING, but is by ODS anything else -or- Proc <GRAPHICS
Consider this beaut:
title1 j=l f='Arial' c=red "Left" j=c h=18pt c=blue "Middle" j=r bc=lig
box=1 angle=45 h=13pct "Right";
filename TFS CATALOG 'WORK.TFS.STORAGE.SOURCE';
Proc PRINTTO PRINT=TFS; RUN;
Proc GOPTIONS TITLE NOLIST NOLOG; RUN;
Proc PRINTTO PRINT=PRINT; RUN;
Creates a nearly useable file for later %INCLUDE. However, there is an
annoying unsubmittal statement when there are no titles or footnotes. And
futherworse, the quotes are removed from the true type font specification.
All in all, not very promising.
VTITLE only delivers the text that will be rendered as the title, nothing
about the rendering options. So again, not helpful.
It seems a lobbyist for
Proc GOPTSAVE and GOPTLOAD
is needed. I wouldn't be surprised if there were 500 metadata elements
contributing to the state of the graphics environment.
DSGI has some limited ability to interact with the graphics system via GASK,
but there is nothing for titles.
For now the best advice is don't get into a situation where you need to push
and pop graphics titles, footnotes, axis, symbols, legends, etc...
Richard A. DeVenezia