The following is an example of COBOL code that can cause the problem:
01 DFHCOMMAREA.
* ACCTINFO IS (INPUT, OUTPUT)
05 ACCTINFO OCCURS 6 TIMES.
10 ACCOUNTNUMBER OCCURS 8 TIMES
PIC X(6).
10 ACCOUNTTYPE PIC X(20).
10 CURRENTBALANCE PIC S9(13)V9(2) COMP-3.
10 INTERESTBEARING PIC S9(4) COMP.
10 INTERESTRATE COMP-1.
10 MONTHLYSVCCHG PIC S9(13)V9(2) COMP-3.
* NAME IS (INPUT, OUTPUT)
05 NAME PIC X(30).
* PIN IS (INPUT, OUTPUT)
05 PIN PIC X(10).
The COBOL Import Wizard will allow the creation of a recordset by selecting the ACCTINFO structure in this code even though it contains a data value with an OCCURS statement. An application that tries to use the NewRecordset method on this component will receive an error.