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: 1) a dash or minus in a variable name, 2) comments in the middle of the SQL statement, and 3) the ]] (double right square bracket) as the concatenate symbol.
This conversion is only applied when the Scanner Job is added to the Job List in the SQL Scanner window using the COBOL option under the Source Code page in the Add Jobs wizard.
If a variable name contains "-" minus sign, then it is replaced with "_".
If the 7th column of the line is an asterisk (*) then the complete line is recognized as a line comment.
If ]] (two right square brackets) are used to concatenate column names, they are replaced with a +.
For example:
SELECT *
FROM EMPLOYEE
* Get the department number
WHERE EMP_ID > :employee-id
AND :name-job = ENAME]]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 Preferences window.
The Index Advisor provides the index candidates by analyzing the structure of a SQL statement and identifying all the related tables and indexes currently used by the SQL statement. By looking into the search arguments and table join conditions of the SQL statement, different index candidates are generated for you to evaluate the effect new indexes may have on database performance. You can further investigate index possibilities by creating your own candidates and grouping the candidates into Index Sets.
The Index Advisor window is divided into the following sections:
Used to enter the SQL statement you wish to analyze for index recommendations.
Displays information about the tables used in the SQL statement.
Displays the table names accessed by the SQL Statement
Displays specific information about the selected table on different tabs: Definition, Columns, Indexes, Constraints/Keys, and Data.
Displays a list of the individual index candidates proposed by the Index Advisor. These are the indexes used in the Index alternatives displayed in the bottom left pane. The following information displays on this page:
Displays the run time information for the SQL statement using the alternative indexes. The values are filled in after the Show Plan, Batch Run, Run for First Record, or Run for All Records functions are executed.
Displays the run time statistics for the SQL statement using the alternative indexes. These values are filled in after the Batch Run, the Run for First Record, or Run for All Record functions are executed. An is placed in the far left column if for some reason the index is not created when the SQL statement is executed.
Charts the run time statistics for the SQL statement using the alternative indexes.
Displays the Used Index which is the index(es) that are currently used by the SQL statement, the Index candidates which are generated by the Index Advisor, or the Index Sets that are created using the User-Defined Index window.
Displays information about the SQL statement when it is using a specific index.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center