SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

SAS Macro code using in SAS DI 3.4

Accepted Solution Solved
Reply
Contributor SYN
Contributor
Posts: 39
Accepted Solution

SAS Macro code using in SAS DI 3.4

SAS macro code taking 3 input tables and creating 5 tables dynamically using macro code.
I am using this code in SAS SI 3.4. Could you please tell me how proceed for this.

Any suggession please.


Accepted Solutions
Solution
‎06-04-2012 09:02 AM
Respected Advisor
Posts: 4,173

Re: SAS Macro code using in SAS DI 3.4

You would need to be more specific for a specific answer. As a general guideline:

What I like to do is to store the macro itself in a SAS Autocall library. I then create a user written transformation where I call the macro, and I define prompts in this user written transformation to pass the values to the macro parameters.

Best practice would be to have the macro code inside the user written transformation. I personally like to have it external because if I have to change something in the macro code I don't need to redeploy all jobs which use the user written transformation. The risk is: The change to the macro will affect all deployed jobs using the user written transformation which call the macro - so you're better careful when changing.

View solution in original post


All Replies
Solution
‎06-04-2012 09:02 AM
Respected Advisor
Posts: 4,173

Re: SAS Macro code using in SAS DI 3.4

You would need to be more specific for a specific answer. As a general guideline:

What I like to do is to store the macro itself in a SAS Autocall library. I then create a user written transformation where I call the macro, and I define prompts in this user written transformation to pass the values to the macro parameters.

Best practice would be to have the macro code inside the user written transformation. I personally like to have it external because if I have to change something in the macro code I don't need to redeploy all jobs which use the user written transformation. The risk is: The change to the macro will affect all deployed jobs using the user written transformation which call the macro - so you're better careful when changing.

Contributor SYN
Contributor
Posts: 39

Re: SAS Macro code using in SAS DI 3.4

Let's start like this.

This macro crating 5 tables dynamically and store it in one folder. No need to crate physical structure of tables.

This macro code will create more variables every next run.

Here my question is how to point these macro to the target tables storing in folder.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

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