06-25-2014 02:58 PM
If I have a SAS transformation Step like Join/Extract and I use the Mappings tab to map Source and Target tables, and I go to 'Code' tab
, I can see generated code.
When I switch to 'User Written Body' from 'Automatic' I can put in my own code that overrides those mappings. The default mappings are greyed out.
I know that when I run it, the code written by me will be executed over the one greyed out in 'User Written Body'.
The thing is, I was expecting the greyed out code to be commented, I just want to confirm that the greyed out code will be ignored.
06-25-2014 03:22 PM
06-25-2014 04:04 PM
1. Make use of User Written Body is not best practice. I even wonder they put in that functionality at all...
2. You can make sure by executing your code...?
06-25-2014 04:47 PM
My understanding is when you use user-written code in DIS, DIS shows the code it generated with a grey background, and the code you write has a white background.
The DIS-generated code with a grey background IS executed. As you say, it is not commented out.
The grey background is just there to help you distinguish which code DIS generated, and which you wrote.