BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
PeterClemmensen
Tourmaline | Level 20

In line 28 in your log, you run the loop if n=1 then do;. In my code it is if _N_=1 then do;. There may be other errors as well, but it is bound to be that way if you change the code like this.

 

Please run my code exactly as it is written with the sample data 🙂

Rohit_1990
Calcite | Level 5
Hi ,

Thanks I will check it and copy the same .


Can you explain your code for my understanding as what is the key value in
hash h.

Or suggest any good PDF to grasp more of hash.


Regards,
Rohit
PeterClemmensen
Tourmaline | Level 20

Before I explain: Did it work for you? And does it work for your actual data? 🙂

 

Thank you for marking my response as an accepted solution. However, can you please mark the response with the actual code as the solution? 

Rohit_1990
Calcite | Level 5
I accept this as solution
PeterClemmensen
Tourmaline | Level 20

Yes, I am aware that you have accepted this as a solution. However, it helps other users of the communities to browse the communities if you accept the reply that contains the actual code.

 

Also, you do not answer my question: Have you tried my code on your actual data?

Rohit_1990
Calcite | Level 5
Hi,

I have no access to sas right now will check it tomorrow in my ofc and
post it to you whether it worked on my actual data or not.

In the meantime if you can help me with explaination that would be graet
help.

Thanks a ton 😊

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 20 replies
  • 7815 views
  • 1 like
  • 5 in conversation