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 😊

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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