BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
telligent
Quartz | Level 8

I have a sas7bdat file and a sas7bndx file with the same name in the same folder but the SAS proc doesn't recognize it.  How can I restore the index using these datasets.  I did not create the index and I am not sure how it was created. 

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

What do you mean by "the SAS proc doesn't recognize it"? Have you tried using PROC CONTENTS on the dataset and does it report an index or not?

 

Check the modified dates for both the files. If the date modified on the SAS7BDAT file is not the same as the SAS7BNDX file then the index won't match the dataset. It will need to be recreated.

View solution in original post

1 REPLY 1
SASKiwi
PROC Star

What do you mean by "the SAS proc doesn't recognize it"? Have you tried using PROC CONTENTS on the dataset and does it report an index or not?

 

Check the modified dates for both the files. If the date modified on the SAS7BDAT file is not the same as the SAS7BNDX file then the index won't match the dataset. It will need to be recreated.

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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