BookmarkSubscribeRSS Feed
deleted_user
Not applicable
HI I have two tables. wonder if i can use proc format or any other SAS programming to achieve the following:

Table #1
Effective Date Rate
20100601 2.5
20090525 2.25
20090302 2.0

Table #2 (has 10,000 records)
Customer LendingDate
A 20090701
B 20090701
..

Basically what i want to do is use the rate Table #1 as reference table to add new column "rate" to customer Table #2. For example
If customer's lending date is 20100622 , then the rate will be 2.5
If customer's lending date is 20100401 , then the rate will be 2.0

My challenge is the table #1 could be growing and I will not be the one update the table. How can i get it done ?
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
A PROC FORMAT (possibly using CNTLIN= to load from a SAS file) is a reasonable and efficient approach for known, discrete (or range-defined) value mapping (START-END to LABEL using SAS PROC FORMAT terms).

You mention about how can I get it done - presuming you mean to define the association data values, you can load from a SAS member which can be created from external source. Presumption is that someone, somewhere knows what's supposed to be used for this process, correct?

Scott Barry
SBBWorks, Inc.


Suggested Google advanced search argument, this topic / post:

proc format documentation cntlin site:sas.com Message was edited by: sbb

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 633 views
  • 0 likes
  • 2 in conversation