We've just recently converted to DB2 V8 z/os for our backend database
server (upgraded from DB2 V7).
Our java applications run under WebSphere/Windows using the DB2 Type 4
driver (V8 FP14).
We were hoping to get our developers pointed in the right direction
for performing multi-row inserts, but we're only finding COBOL
examples. Like:
<<Working storage>>
01 host-variables.
05 HV-ACT-NMBR-ARRAY PIC s9(04) USAGE COMP OCCURS 100
TIMES.
05 HV-ACT-CITY-ARRAY PIC x(40) OCCURS 100 TIMES.
05 HV-ACT-NAME-ARRAY OCCURS 100 TIMES.
49 HV-ACT-NMBR-ARRAY PIC s9(04) USGE COMP.
49 HV-ACT-NAME-ARRAY PIC x(40).
05 HV-IND-ARRAY PIC s9(04) USAGE COMP OCCURS 100
TIMES.
<<Procedure division>>
EXEC SQL
INSERT INTO test-table (col1, col2, col3)
VALUES (:HV-ACT-NMBR-ARRAY,
:HV-ACT-CITY-ARRAY,
:HV-ACT-NAME-ARRAY )
FOR 50 ROWS
ATOMIC
END-EXEC.
Do you know if this possible to do with java and type 4 drivers?
If so, are there any examples?
Thanks,
klh
server (upgraded from DB2 V7).
Our java applications run under WebSphere/Windows using the DB2 Type 4
driver (V8 FP14).
We were hoping to get our developers pointed in the right direction
for performing multi-row inserts, but we're only finding COBOL
examples. Like:
<<Working storage>>
01 host-variables.
05 HV-ACT-NMBR-ARRAY PIC s9(04) USAGE COMP OCCURS 100
TIMES.
05 HV-ACT-CITY-ARRAY PIC x(40) OCCURS 100 TIMES.
05 HV-ACT-NAME-ARRAY OCCURS 100 TIMES.
49 HV-ACT-NMBR-ARRAY PIC s9(04) USGE COMP.
49 HV-ACT-NAME-ARRAY PIC x(40).
05 HV-IND-ARRAY PIC s9(04) USAGE COMP OCCURS 100
TIMES.
<<Procedure division>>
EXEC SQL
INSERT INTO test-table (col1, col2, col3)
VALUES (:HV-ACT-NMBR-ARRAY,
:HV-ACT-CITY-ARRAY,
:HV-ACT-NAME-ARRAY )
FOR 50 ROWS
ATOMIC
END-EXEC.
Do you know if this possible to do with java and type 4 drivers?
If so, are there any examples?
Thanks,
klh
Comment