@mrzlatan91 wrote:
Hi guys, unfortunately I have a problem using Macrovariables. My datasets look like this:
Note, that every index of Table a represents a corresponding value column of table b.
That means, that e.g. the values of ID 124 (Index 1) are represented in the column of table b.
Now, in my macro, I do some checks and want to set some specific value columns to missing.
To try this, I used the following code:
How is 124 "represented" in which column of table b?
When you get an error copy the code submitted and the error messages from the log and paste into a code box opened using the forum {I} menu icon to preserve formatting of the error messages.
Show what your desired output would look like for your examples.
And explain your rules a little. You show a macro variable, &lostid, but not it's value. So we don't know what you might actually be looking for. Is &lostid ever likely to be duplicated in different records of work.a? If so your sql will always select the first index where it appears as written.
Your example work.a would have ID value of 3535 for index 4. Is that actually what you intended?
... View more