Help using Base SAS procedures

error in proc format

Reply
Contributor
Posts: 40

error in proc format

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

Super Contributor
Posts: 349

Re: error in proc format

Hi,

Post some sample data and code that you are using.

Thanks,

Shiva

Frequent Contributor
Posts: 95

Re: error in proc format

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

Contributor QLi
Contributor
Posts: 57

Re: error in proc format

Try use opition "multilabel"  in the Value statement.

for example

proc format;

value $gender  (multilabel)

'1'='Male'

'2'='Female'

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

Super User
Posts: 5,094

Re: error in proc format

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.

Ask a Question
Discussion stats
  • 4 replies
  • 202 views
  • 0 likes
  • 5 in conversation