The quoted string conversion finds SQL statements that are found in the application source code on one command line. The SQL Scanner removes the concatenate character and the quotes surrounding the SQL text.
"SELECT *" + " FROM EMPLOYEE WHERE EMP_ID > 100"
SELECT * FROM EMPLOYEE WHERE EMP_ID > 100
The COBOL conversion searches for three items within the syntax of a SQL statement that are allowed in the COBOL, but are not valid SQL syntax:
A dash or minus in a variable name
Comments in the middle of the SQL statement
The ]] (double right square bracket) as the concatenate symbol
This conversion is only applied when the Scanner Job is added to the Job Manager window using the COBOL option under the Select Source Code page in the Add Jobs wizard.
If a variable name contains "-" minus sign, then it will be replaced with "_".
If the 7th column of the line is an asterisk (*) then the complete line will be recognized as a line comment.
If ]] (two right brackets) are used to concatenate column names, they will be replace with a +.
SELECT * FROM EMPLOYEE
* Get the department number
WHERE EMP_ID > :employee-id
AND ENAME ]] JOB = :name-job
SELECT *
FROM EMPLOYEE -- * Get the department number
WHERE EMP_ID > :employee_id
AND ENAME || JOB = :name_job
Note: If your COBOL file has tags at the beginning of the lines of code, you need to use the Number of characters to be skipped at the beginning of every line for all files option found on the SQL Scanner tab in the Options window.
Quest SQL Optimizer for IBM® DB2® LUW maximizes SQL performance by automating the manual, time-intensive and uncertain process of ensuring that SQL statements are performing as fast as possible. SQL Optimizer analyzes, rewrites, and evaluates SQL statements within multiple database objects, files, or SQL statements captured by the DB2 Event Monitor. With SQL Optimizer, you can analyze and optimize all your problem SQL from multiple sources. SQL Optimizer also provides you a complete index optimization and plan change analysis solution, from index recommendations to simulated index impact analysis, through comparison of multiple SQL access plans.
SQL Optimizer provides you with the following main modules.
SQL Optimizer (including SQL Rewrite and Generate Indexes functions)
The Job Manager window provides a work area for the SQL Scanner module. It allows the addition or deletion of items to be scanned. These items, also referred to as Jobs, can be database objects, DB2 Event Monitor files/tables, text/binary files, or COBOL files.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center