Hi,
I would like to be able to use an already LASR loaded table as a lookup table in my data step (hash table lookup). Is this possible?
Yes it's possible.
Data in LASR is available to you by a libname.
But (it's kinda big but), be aware of that the whole table will be transferred to your local SAS session where your data step executes. So in this sense, it's not certain that's a advantage to use LASR data (if you are on a remote host to the LASR server).
What kind of operations is this, and why do you need to use LASR data?
Hi, thanks,
What I am doing is typical SCD loads, so I will have to figure out new, chg, close records. What I thought of going is to load my dimensions into memory the day before, so that when my new data comes along, and I need to do lookups for SCD, I can save time by avoiding the loads of the lookup table since it was loaded prior to batch start. The only way I thought of pre loading was to load to LASR. The LASR server and workspace on on the same physical machine.
Also, how will this affect my data step code, where I would have loaded the table to memory I now have to point to a LASR table via memory addr/ref????
this:
declare hash h0(dataset: "libname.table", hashexp: exponent);
h0.defineKey( "cd");
h0.defineData( "data1");
h0.defineDone();
would be????
Many thanks for the help
found another option, have not yet explored. proc server,
thanks for all the help.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.