Implement out-of-the-box /lib functions that emulate the ASAssets Utilities "applyReservedListToPath" and "applyReservedListToWord". A function like this is required in the "new" Dynamic Data Source Call Back function to fix data source paths referenced in the ALTER DATA SOURCE statement. Functions like the ones below are used for other automation procedures as well. If a procedure is constructing "dynamic" SQL from a TDV resource path and that path contains leading underscore, numbers, reserved words or special characters, the path part must be enclosed in double quotes in order to properly execute the SQL statement. This is technically challenging to accomplish. Additionally, a list of reserved words is required which can change from TDV version to version. Therefore, having this in the product makes a lot of sense.
Purpose:
applyReservedListToPath: This procedure is used to fix the leading characters and TDV reserved words used in a folder path. Any path that contains a reserved word, leading underscore '_' or a number '0123456789', or special character must have double quotes inserted around that portion of the folder. This procedure would be called in conjunction with other procedures. For example, when generating a view based off of another view, the SELECT statement's FROM clause would require that the path to the underlying view be fixed with double quotes if it meets any of the quoting criteria above.
applyReservedListToWord: This procedure is used to fix the leading characters and CIS reserved words used in a word. Any word that is a reserved word, has a leading underscore '_' or a number '0123456789', or has a special character must be quoted.