BookmarkSubscribeRSS Feed
sasbasls
Calcite | Level 5

I am getting an error message in the proc format with some symbols -

"This range is repeated, or values overlap: "

I was presttey sure that there are no repeats of variables with "by" statement, How to overcome this issue.

thanks in advance,

sasbase9

4 REPLIES 4
shivas
Pyrite | Level 9

Hi,

Post some sample data and code that you are using.

Thanks,

Shiva

Alpay
Fluorite | Level 6

Can you post some data as to how your proc format is defined?

QLi
Fluorite | Level 6 QLi
Fluorite | Level 6

Try use opition "multilabel"  in the Value statement.

for example

proc format;

value $gender  (multilabel)

'1'='Male'

'2'='Female'

'1','2',' '='Total people';

Astounding
PROC Star

If SAS is telling you that there is an overlap, then there really is an overlap.  Plain and simple.  You just haven't found it yet.  Here are some cases to look for.

Ranges can overlap:

1-10='Low'  8-15='Medium';

Values can be repeated:

'M' = 'Male'

'M' = 'Male'

You'll find at least one of these somewhere, even if it's part of a range that uses LOW or HIGH.

Good luck.

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