Invalid Descriptors
The program can copy a record definition from the dictionary and use the record elements as host variables in embedded SQL.
If you declare host variables by copying a record description from the dictionary, you must observe all rules regarding host variable declarations.
Placement
You can place COPY IDMS RECORD statements in any area of the DATA DIVISION that COBOL allows record definitions.
VALUE Clauses
If the dictionary record is to be copied into the LINKAGE SECTION and includes VALUE clauses, the VALUE clauses are not copied.
Using COPY IDMS RECORD for Host Variables
If the record to copy contains fields that the program may reference as host variables, you must include the COPY IDMS RECORD statement in an SQL declaration section.
Copyright © 2013 CA.
All rights reserved.
|
|