Hi All,
I am converting SAS scripts into Alteryx workflow. I have successfully transformed the data and proc steps into the workflow. However, there are a few macros that is there. I would like to request some ideas on how to convert it in ALteryx and how to pass the values dynamically into the workflow. Based on the values being passed as arguments, new tables are getting created. I am writing the demo version of the code below. Any help/leads will be appreciated.
%MACRO Macroname (x, y);
PROC SQL;
CREATE TABLE TABLENAME_&Y. AS
SELECT
DISTINCT *,
'TEXT ' || "&Y." || ' TO DISPLAY' AS ABC
FROM TABLEA A
Join TABLEB B
on COMPRESS(a.&X.) = COMPRESS(B.ID)
Now this is the macro and the following arguments is being passed.
%Macroname(P, Q)
%Macroname(E, F)
%Macroname(R, S)
So these values are being passed to the existing macro code and separate tables are being created.
Thanks
Zaid