MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cics+db2 query

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
shailesh
Beginner


Joined: 30 Jun 2006
Posts: 3
Topics: 2

PostPosted: Fri Jun 30, 2006 1:59 pm    Post subject: cics+db2 query Reply with quote

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
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Sat Jul 01, 2006 10:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Sun Jul 02, 2006 2:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
shailesh
Beginner


Joined: 30 Jun 2006
Posts: 3
Topics: 2

PostPosted: Mon Jul 03, 2006 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group