View previous topic :: View next topic |
Author |
Message |
shailesh Beginner
Joined: 30 Jun 2006 Posts: 3 Topics: 2
|
Posted: Fri Jun 30, 2006 1:59 pm Post subject: cics+db2 query |
|
|
hi i have a cics+db2 program.
i have an list of acnt names on screen defined as an array of length 10.
if user updates then names need to be inserted into table
insert query fails while i give
insert into xxxx (number,......)values
(ws-numbr(ws-array)......)
suggest me if any ways to do |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Sat Jul 01, 2006 10:54 pm Post subject: |
|
|
Will you please elaborate about 'insert query fails'? Do you get any SQL error? CICS abend?
And by the way, INSERT can't be a query.
O.
________
XM Falcon
Last edited by ofer71 on Sat Feb 05, 2011 11:36 am; edited 1 time in total |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Sun Jul 02, 2006 2:00 pm Post subject: |
|
|
shailesh,
You cannot insert array values as different rows in a single sql statement. You need a loop to insert the array values 1 by 1.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
shailesh Beginner
Joined: 30 Jun 2006 Posts: 3 Topics: 2
|
Posted: Mon Jul 03, 2006 1:05 pm Post subject: |
|
|
I got act names as map fields defined as an array of 10 and need to be populated from the table.
If I do the changes then the new values needs to be inserted into the table .
Duplicates must be ignored. Is there a way other than sorting the entered
values and comparing with original ones. |
|
Back to top |
|
 |
|
|