Hi,
Im am working on simple User Written Transformation which calls Oracle stored procedures with some arguments. Some are INPUT and OUTPUT tables.
But...
SAS keeps generating %macro etls_createIndexes; function and tried to call it based on metadata information for input and output tables in regards to indexes.
I really need SAS to leave them alone. Instead, SAS tries to create index that already exist and fails.
How do I prevent this macro function to be autogenerated & called?
Thanks!
Best regards,
Hi,
Thanks for suggestion. I would rather not do so. It might bite me back when least expected.
However, I found in Additional Options for transfotmation: Generate indexes on target tables and default is YES.
When I set it to NO, I have no issues.
I would be happiest if default option for it can be set when building User Written Transformation. Didn't find it, though.
As a short-term fix, you can add two lines to your session:
%macro etis_createindexes;
%mend etis_createindexes;
This creates a temporary version of the macro that performs no work.
Of course, it also means the original version of the macro will no longer be available for the duration of the session. So it's not a long-term cure.
Hi,
Thanks for suggestion. I would rather not do so. It might bite me back when least expected.
However, I found in Additional Options for transfotmation: Generate indexes on target tables and default is YES.
When I set it to NO, I have no issues.
I would be happiest if default option for it can be set when building User Written Transformation. Didn't find it, though.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.