BookmarkSubscribeRSS Feed
unclefed
Calcite | Level 5

Hi,

Has anybody an experience of work with SAS ABM (Calculated driver assignment)?

I need to assign source to destination account using the name or value of attributes and find the value for DrvQtyCalc in one destination atribute.

Could it be possible if I use one attribute at source account and some attributes at destination account?

It's seems to me that it could be something like that:

Destination.Source."Name_of_the_source_attribute"  but similar construction is not work without quotation after the Destination. word.
So may be it's not possible?

For more clarity, for instance, in this construction:

if (Destination.HasAttribute( Source."ACST".DimMemRef ) ,7 ,8)

how could I change "7" and "8" for the attribute name which is similar with the value of Source."ACST".DimMemRef  or with the name or value of the source attribute?

1 REPLY 1
unclefed
Calcite | Level 5

I have partly decided this problem by a bit another way, I made and input an attribute "Acc_cost" at the source and destination account, but at destination I input complicated value for this attribute which consist of couples of values - the source account name and the value for driver quantity.

In a driver formula I use the costuction based on if and find operators:

...find ( Source."Acc_cost", Destination."Acc_cost")...

but there are some limitations in this way

1. For the Find, Len, Mid functions there is 63 characters limit for arguments. It is very sad but may be it is increase the speed and performance.

2. 1025 character limit for use in a driver formula.

So I can only assign 15-20 different values for DrvQtyCalc. And than I have to make another driver and it is a bit inconvenient.

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