Did you ever run a complicated join and realized you forgot to add one primary field or that the length of your primary fields did not match? Rerunning a join through point and click can be a tedious task; however the log can be your best friend whenever you need to tweak something.
- Select the log so it opens in the display area of the left side.
- Find the last JOIN command that you would like to make changes to. If you have a hard time finding where your last join occurred, you can do a search in the log.
- To search in the log, right click and select ‘Find.’
- Enter the main word that you would like to find in the log. In this case, I wanted the log to find anything with the word Join. You can select the direction that you would like to search in as well. Knowing that my Join was done recently, I selected up. This means that it will start looking from the bottom to the top for the word I want it to find.
After clicking through some of the results, I have now found the Join that I would like to make changes to.
- Click on your Primary Table (in this example the Primary Table is Payroll) and select Run in the Command Line. Do the same thing for the Secondary Table.
- Click on your last JOIN command and double-click the command underlined in blue in the display area.
- Your original JOIN dialog box will appear with all of your previous setting. Make any changes in the dialog box and run.
- After the new Join runs, open the log again and copy and paste it into the script. We recommend doing this to help save time in the future as it will make it easier to refer back to if you ever need to make any other changes.
Bonus Tip: This little trick applies to anything in the log that you might want to add or do differently including commands such as Summarize, Classify, Statistics, and Total.