BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
strsljen
Obsidian | Level 7

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,

 

 

 

--
Mario
1 ACCEPTED SOLUTION

Accepted Solutions
strsljen
Obsidian | Level 7

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.

sas1.png

I would be happiest if default option for it can be set when building User Written Transformation. Didn't find it, though.

--
Mario

View solution in original post

2 REPLIES 2
Astounding
PROC Star

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.

strsljen
Obsidian | Level 7

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.

sas1.png

I would be happiest if default option for it can be set when building User Written Transformation. Didn't find it, though.

--
Mario

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 2 replies
  • 862 views
  • 0 likes
  • 2 in conversation