Desktop productivity for business analysts and programmers

SAS Templates from Enterprise Guide.

Accepted Solution Solved
Reply
Contributor
Posts: 70
Accepted Solution

SAS Templates from Enterprise Guide.

How to access Templates from SAS EG? I couldnt find sashelp.tmplmst when I expand the library SAShelp. I can see those when I rdp to the server and launch SAS session on the server.


Accepted Solutions
Solution
‎07-15-2016 12:07 PM
Super User
Posts: 3,233

Re: SAS Templates from Enterprise Guide.

Sorry I just realised you are looking at ODS templates. These are held in ITEMSTORES not catalogs, so you can't use proc CATALOG.

 

Instead you use PROC TEMPLATE in EG like this:

 

http://support.sas.com/documentation/cdl/en/odsproc/67922/HTML/default/viewer.htm#n1551aai5l9e6zn0zt...

 

There is no way of viewing template item stores in a window via EG that I'm aware of but I agree it would be handy...

View solution in original post


All Replies
Regular Contributor
Posts: 169

Re: SAS Templates from Enterprise Guide.

You should be able to see them under Tasks >> Task Templates >> Task Template Manager...

 

reference

Contributor
Posts: 70

Re: SAS Templates from Enterprise Guide.

Thank You for your response. But for some reasons, I am not able to see anything under Tasks > >Task Templates >> Task Template Manager. It is just blank.

Super User
Posts: 3,233

Re: SAS Templates from Enterprise Guide.

SAS templates are stored in SAS catalog entries. You can't view the contents of SAS catalogs in vanilla EG. You can add the SAS catalog veiewer custom task:

 

http://blogs.sas.com/content/sasdummy/?s=catalog

 

But this still won't allow you to open a template entry.

 

This is an example of one of the restrictions of using EG...

Regular Contributor
Posts: 169

Re: SAS Templates from Enterprise Guide.

Of course to view a catalog, you can always use:

proc catalog catalog=libref.catalog-name;
    contents;
run;
Super User
Posts: 3,233

Re: SAS Templates from Enterprise Guide.

Agreed @paulkaefer - I meant to say view in a window as opposed to list the contents in the SAS log.

Contributor
Posts: 70

Re: SAS Templates from Enterprise Guide.

Hi All - I may have confused everyone. I am looking for the template files under sashelp.tmplmst. How can I access those from EG? I get the below error when I run the SAS code.

proc catalog catalog=sashelp.tmplmst;
    contents;
run;

ERROR: Catalog SASHELP.TMPLMST does not exist.

Solution
‎07-15-2016 12:07 PM
Super User
Posts: 3,233

Re: SAS Templates from Enterprise Guide.

Sorry I just realised you are looking at ODS templates. These are held in ITEMSTORES not catalogs, so you can't use proc CATALOG.

 

Instead you use PROC TEMPLATE in EG like this:

 

http://support.sas.com/documentation/cdl/en/odsproc/67922/HTML/default/viewer.htm#n1551aai5l9e6zn0zt...

 

There is no way of viewing template item stores in a window via EG that I'm aware of but I agree it would be handy...

Contributor
Posts: 70

Re: SAS Templates from Enterprise Guide.

Thank You Very much SASKiwi. This works.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 8 replies
  • 590 views
  • 3 likes
  • 3 in conversation