BookmarkSubscribeRSS Feed
frisco
Calcite | Level 5
Hi, I discovered recently that if I misassigned (or failed to assign) a format library to previously formatted sas datasets that Enterprise Guide wouldn't complain at all! This is because "option nofmterr" is being set "behind the scenes". My question is, why was it thought that this was a good design decision and how do I explain to my end-users with a straight face that EG behaves exactly as Program Editor would. In this case, it certainly does not. I have already opened an issue with Tech Support and a defect has been entered. Could I add that in my over 15 years of using SAS, I have rarely used NOFMTERR and consider it one of the more dangerous options out there.
5 REPLIES 5
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
I also saw a similar "change" once with SAS ITSV (v2.7 maybe?) on z/OS where NOERRORABEND was set so "gallery" queries would not generate a USER abend -- I was baffled how such a significant impact could be made as default setting.

This instance further reinforces the importance of extensive self-testing with a new SAS version, even where it pertains to SAS Base, as well as components, particular SAS/Graph and various ODS "flavors".

Scott Barry
SBBWorks, Inc.
RichardH_sas
SAS Employee
I'm glad you got it in as a defect that can hopefully be controlled in a future release of EG. That said, I've actually used NOFMTERR on a number of occasions when someone has sent me a SAS data set without the needed formats. Then at least I can see the underlying values and structure of the data in the offending columns. In an environment where the tables and formats are static and frequently accessed, I can see where having NOFMTERR as the default could be very misleading to folks who don't understand the unformatted values. So, I see where you're coming from.

Tech support probably mentioned this, but I'd imagine in EG 4.2 you could use Tools > Options > SAS Programs > Submit SAS code when server is connected in order to get "OPTIONS FMTERR;" safely running the way you expect.
ChrisHemedinger
Community Manager
In EG 4.2, if you want to see exactly what is run when SAS initializes:

* View->Server List
* In the Server list, expand the server you are connecting to (ex: "SASApp" or "Local")
* Right-click on the server name and select Properties.
* Click on the Software tab.
* Click on View Initialization Log.

This will show the startup log, just like you are used to seeing within traditional SAS environments. It includes the additional options/macros that EG submits when SAS starts. The options are set this way to provide a better user experience for most users, but as Richard said, you can override the system options with your own statements in that Tools->Options setting.

See also:
http://www.sascommunity.org/wiki/Tips:User_Specific_Autoexecs_in_Enterprise_Guide


Chris
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
ChrisHemedinger
Community Manager
Thanks to Frisco for raising the awareness on this. And for providing me with a blog topic:

http://blogs.sas.com/sasdummy/index.php?/archives/131-Do-me-a-favor-stop-doing-me-favors.html

Chris
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
Doc_Duke
Rhodochrosite | Level 12
I disagree with frisco that this is a "defect." (Back to my mainframe days: "It's not a "bug," it's a "feature."). I noticed back in 1.3 that it was implemented and agree with Chris that it is very good for learners. EGuide 4.2 introduces some additonal changes from the defaults (like adding ODS GRAPHICS ON statements. You can look at the code to find them, but I'd sometimes like to see them listed in summary.

As a consulting statistician, I often see datasets where the data and the format library have gotten disconnected and the NOFMTERR is necessary. If is also needed for reading data with V8 format libraries in V9.

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
  • 5 replies
  • 636 views
  • 0 likes
  • 5 in conversation