BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I know that this was okay in 9.13 of SAS base previously (CC=0), and now gets a warning message with a CC=4 now, and I'm okay with that, but I would like to have the warning removed and go back to a CC=0 to have things cleaned up.

What do I have to do to make this happen?

code is as follows:
199 + IF _N_ = 1 THEN DO N=1 TO &NUMGRPS;
200 + GRPN{N}=PUT(N,$GNAME.);
WARNING: Variable N has already been defined as numeric.
201 + END;

Help appreciated.
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
A related PROBLEM NOTE on SAS.COM support website (I used SEARCH to find it). You are using a numeric SAS variable "N" against a character SAS format, which is causing the WARNING message condition.

Suggest you make a code tightening correction (my words) and use a PUT function against the "N" NUMERIC type variable with consideration for the length of &NUMGRPS, as shown below:

PUT(N,5. -L )

Problem Note 35428: Warning messages that incorrectly produce a RC=0 now correctly produce a RC=4 in SAS 9.2
http://support.sas.com/kb/35/428.html
deleted_user
Not applicable
Thanks SBB.

I had found the error list that you pointed out.

The resolution was as easy as you stated. I used the format without the dollar sign in front of the format error.

Thanks again

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 5755 views
  • 0 likes
  • 2 in conversation