BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Dmitry
Obsidian | Level 7

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?

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

View solution in original post

10 REPLIES 10
ChrisHemedinger
Community Manager

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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
Dmitry
Obsidian | Level 7

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.

ChrisHemedinger
Community Manager

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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
Dmitry
Obsidian | Level 7

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

ChrisHemedinger
Community Manager

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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
PoulRavn
Obsidian | Level 7

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

SASKiwi
PROC Star

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.

PoulRavn
Obsidian | Level 7

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

ChrisHemedinger
Community Manager

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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
PoulRavn
Obsidian | Level 7

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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