Chat now with support
Chat mit Support

SQL Optimizer for DB2 LUW 4.4.2 - User Guide

SQL Optimizer for IBM® DB2® LUW
UsageStatistics Getting Started Options SQL Scanner SQL Optimizer SQL Formatter SQL Inspector Database Explorer SQL Repository Index Impact Analyzer Index Usage Analyzer User-Defined Temp Table Editor Functions SQL Functions SQL Information and Functions Activity Log
Tutorials About us Copyright

Quoted String Conversion

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. 

Original SQL statement

"SELECT *" + " FROM EMPLOYEE WHERE EMP_ID > 100"

After conversion

SELECT * FROM EMPLOYEE WHERE EMP_ID > 100

 

Related Topics

COBOL Conversion

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.

Conversion for variable name

If a variable name contains "-" minus sign, then it will be replaced with "_".

Conversion for comment

If the 7th column of the line is an asterisk (*) then the complete line will be recognized as a line comment.

Conversion for concatenate character

If ]] (two right brackets) are used to concatenate column names, they will be replace with a +.

Original SQL statement

SELECT * FROM EMPLOYEE

      * Get the department number

 WHERE EMP_ID > :employee-id

   AND ENAME ]] JOB = :name-job

After conversion

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.

 

Related Topics

Job Manager

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)

SQL Formatter

Database Explorer

SQL Scanner

SQL Inspector

SQL Repository

Index Impact Analyzer

Index Usage Analyzer

 

About Job Manager

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.

 

Verwandte Dokumente

The document was helpful.

Bewertung auswählen

I easily found the information I needed.

Bewertung auswählen