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

I have to run some existing program that create CGM files in EG 4.3, and the GOPTIONS settings are being overridden.  I think it is EG trying to help, as CGM is not valid in the ODS HTML destination, but it still produces a CGM, although all the specified hardware fonts have been replaced.

Can anyone suggest a way of running the CGM-producing program in EG without major surgery?

Thanks in advance..........Phil

1 ACCEPTED SOLUTION

Accepted Solutions
prholland
Fluorite | Level 6

After playing around with the options in EG I have resolved this problem myself!

The root of the problem was the default ODS destination of HTML, which is incompatible with CGM files, so switching this off in EG Tools > Options > Result General, and opening the LISTING destination allowed CGM files to be created.  This is OK until you actually need to generate HTML files, when you have to go back into Results General to switch HTML back on.

Therefore the solution has be added to the specific program:

ODS _ALL_ CLOSE;

ODS LISTING;

* ........... CGM-generating SAS code ..............*;

ODS LISTING CLOSE;

Provided the HTML destination is not in use, CGM files are generated in the same way they are in SAS batch outside EG.

Sorted!!...........Phil

View solution in original post

1 REPLY 1
prholland
Fluorite | Level 6

After playing around with the options in EG I have resolved this problem myself!

The root of the problem was the default ODS destination of HTML, which is incompatible with CGM files, so switching this off in EG Tools > Options > Result General, and opening the LISTING destination allowed CGM files to be created.  This is OK until you actually need to generate HTML files, when you have to go back into Results General to switch HTML back on.

Therefore the solution has be added to the specific program:

ODS _ALL_ CLOSE;

ODS LISTING;

* ........... CGM-generating SAS code ..............*;

ODS LISTING CLOSE;

Provided the HTML destination is not in use, CGM files are generated in the same way they are in SAS batch outside EG.

Sorted!!...........Phil

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
  • 1 reply
  • 709 views
  • 0 likes
  • 1 in conversation