Thanks again Kent. I didn't understand that the code inside the FUNCTION was static and that I needed to create my custom settings by defining parameters for the "name" of the function, that being ODBCSQL.

I ran the function with the correct syntax and the ODBC was created successfully.