Working in DI Studio I have a Lookup transformation that receives input from two Extract work tables. The precode of the Lookup transformation refers directly to the first input work table by means of its physical name, WORK.W66T81JT.
1) Can this create a problem when importing the job to another environment? I seem to recall that physical names of work tables may change under such circumstances, but even if that's the case, perhaps the reference automatically changes to match it.
2) Since &syslast or &input_1 can't be used to refer to the first input of a Lookup transformation, is there a different way that enables me to avoid using the physical table name?
Thanks.
1) Correct. Whenever possible, avoid refer to physical table names. Use DIS macro variables instead.
2) What is the nature of this pre-code? Maybe it can be solved in a different way? One way is to assign your own macro variable from syslast in the post-code in your extracts.
1) Correct. Whenever possible, avoid refer to physical table names. Use DIS macro variables instead.
2) What is the nature of this pre-code? Maybe it can be solved in a different way? One way is to assign your own macro variable from syslast in the post-code in your extracts.
Thanks, you're absolutely right, it could be handled in the postcode.
Do you know if the Splitter transformation may be problematic? Can't see a way to prevent it from referencing physical table names.
Since 4.2, I haven't use splitter. If you are in 9.2 or later, see if you can omit it.
But what is the scenario here about pre/post-code? The pre-code to splitter could use sylast.
The transformations that read each splitter output should as well be able to use syslast in their pre-code.
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.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.