BookmarkSubscribeRSS Feed
doubled30602
Calcite | Level 5

Greetings.  I would greatly appreciate assistance with creating a single record for each real estate transaction within the attached file.  Each transaction has multiple records for each buyer(s) and seller(s).  The SEQ_KEY ID combination is unique for individual transactions.  ROLE=1 is seller(s) and ROLE=2 is buyer(s).  I need to keep track of when a corporation, estate, gov, or agent is the buyer or seller. I have already coded these variables as corpbuy=1 for corporate buyer and 0 otherwise for subsequent regression analysis.  Each transaction can have more than one type.  The biggest challenge for me is when there are many buyers/sellers for one transaction, like SEQ=8 in records 109-116. I would like to do some sort of dynamic lagging but lack the skill.  The largest SEQ is 16 (in the full file not the one attached).  When there are multiple buyers or sellers, I would like to retain at least SEQ=2 of DISPLAYNAME for each so that I can subsequently check for non-arms-length transactions by finding exactly the same last names across ROLE.  If it is not too much, I would like to retain any instance of NAME being populated as this is motivation for my study - NAME is realtors that buy and sell property for themselves and whether they pay different prices.

Thank you for your help!

D. Hayunga

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!

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
  • 0 replies
  • 637 views
  • 0 likes
  • 1 in conversation