Desktop productivity for business analysts and programmers

Cannot create a catalog in SAS Enterpise Guide

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 13
Accepted Solution

Cannot create a catalog in SAS Enterpise Guide

I'm trying to save a graphic output into a separate catalog within WORK library using GOUT= option:

proc gchart data=sashelp.cars gout=car;

     donut type/ name="car";

run;

When I do it in Base SAS (9.4), all works, I can see this catalog in Explorer or running proc catalog catalog=car; contents; run;

But when I do the same in EG 7.1 catalog is not created and proc catalog gives an error ERROR: Catalog WORK.CAR does not exist.

Can it be fixed?


Accepted Solutions
Solution
‎02-18-2015 04:17 PM
Community Manager
Posts: 2,697

Re: Cannot create a catalog in SAS Enterpise Guide

A-ha! I see what you mean.  I think there is a GOPTION that is conflicting with this.  You can reset it.  Try running this in SAS Enterprise Guide:

goptions reset=all;
proc gchart data=sashelp.cars gout=mycars;
     donut type/ name="car";
run;
quit;

proc catalog catalog=work.mycars; contents; run;

PROC CATALOG output:

catout.png

Chris

View solution in original post


All Replies
Community Manager
Posts: 2,697

Re: Cannot create a catalog in SAS Enterpise Guide

By default, the GRSEG entries are placed in WORK.GSEG.  Try this:

proc gchart data=sashelp.cars gout=car;
     donut type/ name="car";
run;

proc catalog catalog=work.gseg; contents; run;


You can also use the Catalog Explorer custom task to see where the catalog entries are.

Chris

Occasional Contributor
Posts: 13

Re: Cannot create a catalog in SAS Enterpise Guide

Thanks Chris, default catalog GSEG works and I use it. My point was that I cannot create another catalog in EG, though I can do it using Base SAS.

Solution
‎02-18-2015 04:17 PM
Community Manager
Posts: 2,697

Re: Cannot create a catalog in SAS Enterpise Guide

A-ha! I see what you mean.  I think there is a GOPTION that is conflicting with this.  You can reset it.  Try running this in SAS Enterprise Guide:

goptions reset=all;
proc gchart data=sashelp.cars gout=mycars;
     donut type/ name="car";
run;
quit;

proc catalog catalog=work.mycars; contents; run;

PROC CATALOG output:

catout.png

Chris

Occasional Contributor
Posts: 13

Re: Cannot create a catalog in SAS Enterpise Guide

Thanks Chris, works perfect. I wonder what kind of option could prevent catalog creation...

Community Manager
Posts: 2,697

Re: Cannot create a catalog in SAS Enterpise Guide

I think it's the default setting that EG sets as GOPTIONS DEVICE=ACTIVEX.  If you change your application options to use PNG instead (which I like better), then there is no conflict.

Chris

Frequent Contributor
Posts: 79

Re: Cannot create a catalog in SAS Enterpise Guide

Hi community, I found this post when searching for the behaviour of the gseg catalog (I just used 'gseg' in the search field). My trouble is the following: I have lots of SAS programs that create assemblies of graphs that I combine using greplay. I rely on the names of the graphs to be in the (odd!) sequence of gplot, gplot1, gplot2 etc. In order for this to work, I need to be able to delete all the entries of the gseg catalog before a new set of entries are created (with the same names as before). I hope this is understandable.

 

From the post I can see how it works. Thank you. But, In my internal folder 'explorer' I cannot see the graph catalog. Its name does not appear. I ran the example in the post and everything was as displayed, however there is no catalog with the name 'mycars' in work.

 

I am missing a point here, but what?

 

Regards

Poul R S

Respected Advisor
Posts: 3,065

Re: Cannot create a catalog in SAS Enterpise Guide

The server list / data explorer in EG only shows datasets. Download and install the custom catalog viewer task Chris refers to earlier in this post to view catalog entries in a separate window.

 

Its too bad this functionality isn't integrated into EG out of the box, but it is better than not having it at all.

Frequent Contributor
Posts: 79

Re: Cannot create a catalog in SAS Enterpise Guide

Hi, thanks for pointing me to the extension/add-in. Maybe I am just not understanding the instructions (fairly simple though) or something is wrong. My EG version is 6.1. The installation is sitting in a folder called C:\Program Files\SASHome\SASEnterpriseGuide\6.1, - so that is where I create the 'custom' folder as a subfolder. Then I extract the contents of the downloaded *.zip file in a temporary folder. There are 3 files there:

Readme.txt,

SAS.Tasks.Examples.CatalogExplorer.dll,

and a new *.zip file called

SASTasksCatalogExplorer_Src.zip.

 

Following the instructions I should copy all 3 of them into the new 'custom' folder, it being a subfolder of the ...\6.1\ - folder. Right?

 

Done that, but the addin does not show up in the Add-in tab in EG 6.1.

 

So is 6.1 not included in the version that it works for, or am I just missing something.

 

Regards

Poul R S

Community Manager
Posts: 2,697

Re: Cannot create a catalog in SAS Enterpise Guide

[ Edited ]

You need just the DLL file, not any of the source/sub-zip files.

 

One more step you probably need to do:

 

 - Unblock custom task DLL for use in SAS Enterprise Guide

 

That step wasn't necessary WAY back when this particular task was built, but later versions of Microsoft .NET require it.

 

Chris

Frequent Contributor
Posts: 79

Re: Cannot create a catalog in SAS Enterpise Guide

Thanks, the unblocking did it. Looks great. What I wanted. Poul R S

☑ This topic is SOLVED.

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

Discussion stats
  • 10 replies
  • 850 views
  • 2 likes
  • 4 in conversation