For the SQL code -316, this solution replaced the existing Explanation section with the following text:
Explanation: The indicated column reference in an ON clause refers to a column in a table that may be accessed after the join of the ON clause. Column references in predicates of the ON clause must refer to the tables in the ON clause or tables that must to be accessed before the join of the ON clause due to the order of the INNER or LEFT joins. Tables in the FROM list separated by commas may be joined in a different order than written to provide the lowest possible cost of execution.
The following are examples of queries that will result in the -316 SQL code:
Example 1: Join order may change such that T1 is read after the join of T3 and T4.
select count(*)
from sql_status T1, sql_status T2,
(sql_status T3 left join sql_status T4
on T1.urts = 1)
;
Example 2: T4 has not been read before the join of T1 and T2.
select count(*)
from (sql_status T1 left join sql_status T2 on T4.urts = 1)
left join
(sql_status T3 left join sql_status T4)
This PDC updated CA Technologies recommendation on the Multi-User Facility (MUF) startup option, SQL_OPTIMIZATION_LEVEL.
There are three updates in this PDC:
If your COBOL compiler supports 'OPTION PGMN(LM)' and you use a program name longer than 8 bytes, this Product Documentation Change applies to you.
Replace the current content for message DB21020E in the CA Datacom/DB Message Reference Guide Version 12.0.00 with the following:
DB21020E PROGRAM-ID > 32 CHARACTERS
There is a need to set SQLDATA and SQLIND in SQLVAR to address of host variable, but COBOL does not allow these fields to be declared as pointer variables. DBXHAPR is only for COBOL programs using dynamic SQL. COBOL does not allow the SQLDATA and SQLIND fields to be declared as pointer variables. When you nevertheless need to set them to the address of host variables in SQLVAR, follow these steps:
CALL 'DBXHAPR' USING <SQLDATA>, <host-var>.
INCLUDE OBJLIB(DBXHAPR)
CA Dataquery
Beginning with Version 14.0, the CA Dataquery Report Facility is no longer distributed as part of the product. You may want to use the CA Datacom/DB Reporting Facility, CA Datacom SQL queries or other facilities instead.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|