Chevell Parker has written a few excellent papers on the TAGSETS.TABLEEDITOR tagset that can be found here, here and here. ODS TAGSETS such as TABLEEDITOR are saved as item stores and need to be updated as the code can change over time. I do not update tagsets often, so created this blog entry for future reference and to share with others looking to do the same.
You can see the templates that are available by issuing the ODS PATH SHOW command. Individual tagsets in a library can be seen using SAS display manager by clicking on the Explorer window then at the bottom click on the Results tab. After that, left-mouse click on the Results node then Templates. Alternatively, you could issues ODSTEMPLATES in the SAS command window.
In the case of the TAGSETS.TABLEEDITOR I wanted to know the date and version that I was using. That can be achieved by adding OPTIONS( doc = "quick" ).
See the below code for the steps I used to update the tagset. You can also refer to Usage Note 32394: Installing and Storing Updated Tagsets for ODS MARKUP.
libname common "pathgoeshere" ; ods path show ; current ODS PATH is: 1. COMMON.TEMPLAT(READ) 2. SASUSER.TEMPLAT(UDPATE) 3. SASHELP.TMPLMST(READ) ods tagsets.tableeditor file = "c:\temp\junk.html" options( doc = "quick" ) ; ods tagsets.tableeditor close ; NOTE: Writing TAGSETS.TABLEEDITOR body file: c:\temp\junk.html v2.65 4/25/2013 *-- set the template mode from READ to UPDATE ; ods path common.templat(update) ; filename temp url 'http://support.sas.com/rnd/base/ods/odsmarkup/tabeleditor/tableeditor.tpl'; %inc temp ; NOTE: Overwritting existing template/link: Tagsets.Tableeditor NOTE: TAGSET 'Tagsets.Tableeditor' has been save to: COMMON.TEMPLAT filename temp clear ; ods path reset ; ods path show ; Current ODS PATH list is: 1. SASUSER.TEMPLAT(UPDATE) 2. SASHELP.TMPLMST(READ) *-- reset common.templat as the first to be read in READ mode ; ods path(prepend) common.templat(read) ; ods path show ; current ODS PATH is: 1. COMMON.TEMPLAT(READ) 2. SASUSER.TEMPLAT(UDPATE) 3. SASHELP.TMPLMST(READ) *-- show that the tagset has been updated as it has ; ods tagsets.tableeditor file = "c:\temp\junk.html" options( doc = "quick" ) ; ods tagsets.tableeditor close ; NOTE: Writing TAGSETS.TABLEEDITOR body file: c:\temp\junk.html v3.14 3/2/2015
No comments:
Post a Comment