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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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