SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
KBACHU
Fluorite | Level 6

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.

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

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

8 REPLIES 8
paulkaefer
Lapis Lazuli | Level 10

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

 

reference

KBACHU
Fluorite | Level 6

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.

SASKiwi
PROC Star

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...

paulkaefer
Lapis Lazuli | Level 10

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

proc catalog catalog=libref.catalog-name;
    contents;
run;
SASKiwi
PROC Star

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

KBACHU
Fluorite | Level 6

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.

SASKiwi
PROC Star

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...

KBACHU
Fluorite | Level 6

Thank You Very much SASKiwi. This works.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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