Help using Base SAS procedures

Creating a catalog in sashelp EMUTIL folder.

Accepted Solution Solved
Reply
Contributor
Posts: 24
Accepted Solution

Creating a catalog in sashelp EMUTIL folder.

Hi,

I am seeking some information on how can I create a catalog in SASHELP's EMUTIL folder.

I know we can create a catalog using "proc build" and pointing it to a location on computer as library but I am not able to figure out how can I create a catalog (with some sas program files) in the EMUTIL folder of sashelp library.

Any help is appreciated.


Accepted Solutions
Solution
‎07-06-2015 10:22 AM
Contributor
Posts: 24

Re: Creating a catalog in sashelp EMUTIL folder.

Thanks All for your suggestions...

I was trying to create a extension node in SAS Enterprise miner which requires putting sas macros in SAShelp library if I want to distribute it via server.

I found this documentation from developers's guide very helpful:

The simplest way to do this is to include your catalog in the Sashelp library by placing the catalog in the SASCFG folder. The exact location of this folder depends on your operating system and your installation configuration, but it is always found under the root SAS directory and has a path resembling ... \SAS\SASFoundation\9.2\nls\en\SASCFG. For example, on a typical Windows installation, the path is as follows: C:\Program Files\SAS\SASFoundation\9.2\nls\en\SASCFG. You can also store the catalog in another folder and then modify the SAS system configuration file Sasv9.cfg so that this folder is included in the Sashelp search path. The Sasv9.cfg file is located under the root SAS directory in ... \SAS\SASFoundation\9.2\nls\en. Putting your code in the Sashelp library enables anyone using that server to access it.

View solution in original post


All Replies
Super User
Posts: 3,101

Re: Creating a catalog in sashelp EMUTIL folder.

EMUTIL is a SAS-supplied catalog containing souce code entries for Enterprise Miner. It is created as part of your SAS installation.

It would be highly dangerous to add your own souce code entries to this catalog and in any case if your SAS server is set up correctly you would have read access only to this location. 

If you want to store your own user code/utilities in a SAS catalog, then it would be best to add it it in a user-created SAS library.  

Valued Guide
Posts: 2,174

Re: Creating a catalog in sashelp EMUTIL folder.

I think the only way to support this requires that you can add a system option at SAS start-up, like:

-insert sashelp 'a path that your and the sas server can write'

This extends the concatenation of SAS help to include the folder of your choice.

It then depends on library and catalog concatenation. See the concepts at  http://support.sas.com/documentation/cdl/en/lrcon/67885/HTML/default/viewer.htm#p0en09656vbdqvn13o9j...

Solution
‎07-06-2015 10:22 AM
Contributor
Posts: 24

Re: Creating a catalog in sashelp EMUTIL folder.

Thanks All for your suggestions...

I was trying to create a extension node in SAS Enterprise miner which requires putting sas macros in SAShelp library if I want to distribute it via server.

I found this documentation from developers's guide very helpful:

The simplest way to do this is to include your catalog in the Sashelp library by placing the catalog in the SASCFG folder. The exact location of this folder depends on your operating system and your installation configuration, but it is always found under the root SAS directory and has a path resembling ... \SAS\SASFoundation\9.2\nls\en\SASCFG. For example, on a typical Windows installation, the path is as follows: C:\Program Files\SAS\SASFoundation\9.2\nls\en\SASCFG. You can also store the catalog in another folder and then modify the SAS system configuration file Sasv9.cfg so that this folder is included in the Sashelp search path. The Sasv9.cfg file is located under the root SAS directory in ... \SAS\SASFoundation\9.2\nls\en. Putting your code in the Sashelp library enables anyone using that server to access it.

Super User
Posts: 3,101

Re: Creating a catalog in sashelp EMUTIL folder.

I find it interesting that SAS is recommending that user code be placed in a SAS installation folder. This is definitely not best practice as the SAS installation folders are subject to change if maintenance and fixes are applied. There is also the danger of forgetting to migrate your source code when you migrate to a new SAS installation. The rule is you keep user modifications separate.

Putting user changes in a separate folder is definitely the best way to go. Also you should change the config file sasv9_usermods.cfg not the original sasv9.cfg.

Contributor
Posts: 24

Re: Creating a catalog in sashelp EMUTIL folder.

You are right it's probably not a best practice but what I am trying to do is create a extension node in enterprise miner and distribute it on server so others can have access to this new extension node. So for this purpose only this is the easy way to distribute the user defined node. 

☑ This topic is SOLVED.

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

Discussion stats
  • 5 replies
  • 471 views
  • 6 likes
  • 3 in conversation