The information in this article applies to:
SYMPTOMS
When a parameter is defined as an unbounded recordset in Component Builder,
the resultant COBOL declaration upon exportation shows a group-level
definition for the recordset (ALLTYPES in example) and shows the elements,
or columns, of the recordset as data names in this group.
In contrast, when a parameter is defined as a bounded recordset in
Component Builder (upper bounds specified by a number), the exported COBOL
definitions present the recordset (ALLTYPES) as a table where the number of
occurrences equals the bounds specified in Component Builder (100 in this
example).
For example,
WORKAROUNDThe programmer may want to delete the OCCURS clause from the exported COBOL before using it in an application program. Some coding may be facilitated by doing so. For example, it may be considered easier to place the definition of a single row, not in a table or OCCURS, but in the LINKAGE SECTION of the COBOL program. You can then use the SET option for the RECEIVE and use a pointer to address the data row in memory. Also, it would be easier to determine the length of a row dynamically for use in a SEND or RECEIVE, without having to hard-code it into the program. Additional query words:
Keywords : |
Last Reviewed: October 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |